The answer for the above question is Natural selection.
According to natural selection organisms or individuals that are better adapted to their environment are more likely to survive and reproduce passing their traits on to their offspring, while those that are less adapted tend to be eliminated fro the ecosystem.. Diversity is the different species of organisms in the same area.