The answer is natural selection.
In natural selection, genotype variations that will increase the chance of survival and reproduction of some organism are preserved and will be inherited. Darwin's theory suggested that there are variations
among individuals in a population and that these variations will help individuals to survive.