Habitat
Ostriches and warthogs live together in dry, desert climates, most notably the African Savanna biome. This is a tropical desert spanning a large area that composes a significant part of central and southern Africa. It is a wide-open space with little rainfall, composed of small plant life, roots, grass and scattered trees. It contains over 500 bird species as well as 45 types of mammals, including ostriches and warthogs respectively.
Diet
One reason that ostriches and warthogs occupy the African savanna is due to their dietary requirements. Both ostriches and warthogs rely on the small plants in the Savannah for both nutrition and water. The two species share a variety of common staples, including small grass and buried foods, like bulbs, roots and seeds.
Habits
The habits of the ostrich and warthog make them both ideal for living in the savanna. They are both grazers, which means that they search for edible plants. The wide-open space makes it ideal for such survival behavior. It is essentially comparable to the feeding behavior of cattle and horses. The two animals have also adapted to run quickly, which is an advantageous ability in open areas.
Avoiding Predators
Warthogs and ostriches both take full advantage of their environment to ward off predators or avoid detection. Warthogs hide in holes or dig them, pointing their tusks upward like spears. Similarly, ostriches crouch low to the ground. The color of their feathers ideally matches the color of the brush and soil found in the savanna. If these two animals lived in forested areas, for example, these behaviors would be less effective, if at all.