Gregor Mendel conducted experiments with pea plants to discover the laws of heredity and genetics. He found that each organism has two alleles for each trait, with one allele being dominant and observable in offspring while the recessive allele disappears. The alleles separate during gamete formation so each parent passes only one allele to each offspring randomly and independently for different traits. This helped explain how traits are inherited from parents to offspring.