Biodiversity is an important aspect of natural selection. When there are changes in the environment a diverse population of organisms is better able to adapt and thrive in the new environment. If the biodiversity is limited, then both species and ecosystems will not be able to meet new environmental challenges and the populations will decrease or become extinct. If, instead, biodiversity in the species is extensive then those subjects that are best suited to the environment will survive and pass on their genes to future generations. The process of natural selection will determine which of the species survives.
Conversely, natural selection can also limit the biodiversity of a species in the short term. When the subjects that are not well suited to the new or changing environment die out, the biodiversity of the species becomes more limited.