Gregor Mendel conducted experiments breeding pea plants that varied in traits like flower color. By carefully tracking the inheritance of traits over generations, he discovered two laws of heredity: segregation and independent assortment. Mendel found that traits separate, or segregate, so offspring receive one allele for each trait from each parent. He also found that different traits assort independently, resulting in unpredictable combinations in offspring. Mendel's laws explained the patterns of inheritance he observed, like the 3:1 ratio of dominant to recessive traits in the second filial generation. His work established the foundations of classical genetics.