Gregor Mendel conducted experiments with pea plants in the mid-19th century to study inheritance of traits. He found that traits are passed from parents to offspring through discrete units called genes, and that these genes segregate and assort independently during reproduction. Mendel identified laws of inheritance, including that each organism inherits two alleles for each gene, and that alleles segregate so each gamete receives one allele. His work formed the basis of classical genetics.