Baboons are terrestrial and are found in open savannah, open woodland and hills across Africa. Their diet is omnivorous, but mostly vegetarian; yet they eat insects and occasionally prey on fish, shellfish, hares, birds, vervet monkeys, and small antelopes. They are foragers and are active at irregular times throughout the day and night. They can raid human dwellings and in South Africa they have been known to prey on sheep and goats.
Their principal predators are humans, the lion, both the spotted and striped hyena and the leopard. They are however considered a difficult prey for the leopard, which is mostly a threat to young baboons. Large males will often confront them by flashing their eyelids, showing their teeth by yawning, making gestures, and chasing after the intruder/predator.
Baboons in captivity have been known to live up to 45 years, while in the wild their life expectancy is about 30 years.