Mendel conducted experiments crossing thousands of pea plants with contrasting traits like height, seed shape and color. He found that traits are controlled by factors, now called genes and alleles. In the offspring of crosses between purebred parents with different traits, the dominant trait always appeared in the first filial generation. However, in the second filial generation, the recessive trait reappeared in approximately one quarter of offspring, demonstrating that traits are inherited based on dominant and recessive alleles. Mendel's work established the fundamental laws of inheritance and provided the foundation for the modern science of genetics.