Lions play a crucial role in maintaining ecosystem balance within their habitats as apex predators. By preying on herbivores such as zebras and antelopes, lions help regulate the population of these animals, preventing overgrazing and ensuring that plant species are not depleted. This, in turn, helps maintain the overall health and diversity of the ecosystem. Additionally, the presence of lions can also indirectly impact the behavior and distribution of other species, leading to a more balanced and sustainable ecosystem.