stylistic:tone, information:highlighting
Behaviour and ecology

Zebras may travel or migrate to wetter areas during the dry season. Plains zebras have been recorded travelling 500 km (310 mi) between Namibia and Botswana, the longest land migration of mammals in Africa. When migrating, they appear to rely on some memory of the locations where foraging conditions were best and may predict conditions months after their arrival. Plains zebras are more water-dependent and live in moister environments than other species. They usually can be found 10–12 km (6.2–7.5 mi) from a water source. Grévy's zebras can survive almost a week without water but will drink it every day when given the chance, and their bodies maintain water better than cattle. Mountain zebras can be found at elevations of up to 2,000 m (6,600 ft). Zebras sleep for seven hours a day, standing up during the day and lying down during the night. They regularly use various objects as rubbing posts and will roll on the ground.

A zebra's diet is mostly grasses and sedges, but they will opportunistically consume bark, leaves, buds, fruits, and roots. Compared to ruminants, zebras have a simpler and less efficient digestive system. Nevertheless, they can subsist on lower-quality vegetation. Zebras may spend 60–80% of their time feeding, depending on the availability of vegetation. The plains zebra is a pioneer grazer, mowing down the upper, less nutritious grass canopy and preparing the way for more specialised grazers, which depend on shorter and more nutritious grasses below.

Zebras are preyed on mainly by lions. Leopards, cheetahs, spotted hyenas, brown hyenas and wild dogs pose less of a threat to adults. Biting and kicking are a zebra's defense tactics. When threatened by lions, zebras flee, and when caught they are rarely effective in fighting off the big cats. In one study, the maximum speed of a zebra was found to be 50 km/h (31 mph) while a lion was measured at 74 km/h (46 mph). Zebras do not escape lions by speed alone but by sideways turning, especially when the cat is close behind. With smaller predators like hyenas and dogs, zebras may act more aggressively, especially in defense of their young.