The discovery of genetics provided the solution that evolution needed. Gregor Mendel (1822-1884), an Augustine monk, was interested in the inheritance of characteristics in plants. He experimented with pea plants in the grounds of his abbey, crossing plants that had visibly different characteristics to see whether subsequent generations would inherit these characteristics. These experiments led him to discover several of the key laws of modern genetics. The crucial one for the resolution of Darwin’s problem is that hereditary variation, advantageous or otherwise, is caused by genes (although Mendel did not use the word gene) and that genes do not blend with one another.
In genetic language, then, we would say that evolution proceeds as follows. Every so often, organisms randomly develop genetic mutations. Some of these mutations confer on the organism a competitive advantage that makes it more likely to survive to reproductive age and breed successfully. These mutated genes are therefore more likely to be passed on to the next generation. Those individuals that inherit the mutated gene are at a competitive advantage relative to other organisms that do not have this gene (there is a slight assumption here – that the organism will benefit from inheriting the new mutation from one parent: some genes, known as recessive alleles, only have an effect if inherited from both parents). They are therefore more likely to survive and to reproduce successfully. This advantageous gene will therefore appear in a larger proportion in the next generation, and eventually this gene will spread throughout the population. Taking the original example of a gene that improves night vision, we can see that eventually the entire population will have better eyesight.