Okapis live in rainforests and their habitat provides them with all the resources they need to survive. The rainforest is rich in vegetation, providing the okapis with an abundance of food. The rainforest also provides okapis with shelter from the sun and rain, as well as protection from predators. Okapis also use the rainforest to camouflage themselves from predators.