Biodiversity refers to the variety of species that exist in an ecosystem and contributes to its stability over time. Loss of biodiversity upsets this stability as species that fill important niches can disappear, taking years for the environment to recover or some interactions to return. For example, removing predators of deer led to overpopulation, food shortage, starvation with effects on the wider environment. Loss of biodiversity also reduces the genetic variety that provides benefits to humans like medicines.