Populations evolve over time through natural selection as beneficial genetic mutations allow individuals to better survive and reproduce in their environment. While evolution has no end goal, it has generated the extensive biodiversity on Earth which is vital for sustaining life but is now threatened by human activities that cause premature species extinction and habitat destruction. Each species occupies a unique ecological niche, and loss of species disrupts ecosystem functions.