Mutations create diversity and meiosis and sexual reproduction mix that diversity, but at the end of the day evolution is the process which selects biodiversity.
Some characteristics can be heritable (e. g. eye color) while others aren‘t (muscles hypertrophy is linked to sport practice). Heritable characteristics are transmitted from the parents to their child via meiosis and sexual reproduction.
Some of those characteristics, which appeared randomly trough mutations, can be an advantage in terms of survival or reproduction for the individuals who have it, and their proportion will thus increase in the population with time. That’s natural selection.
Other characteristics are neutral and their proportion will randomly vary through time, some being erased faster with a smaller population (genetic drift).
Nouveau ! Découvrez Nomad'IA : le savoir de nos 400 profs + la magie de l'IA