Gregor Mendel conducted experiments with pea plants in the 1860s to understand the laws of heredity. He found that traits such as plant height and seed color were inherited based on discrete factors (now known as genes and alleles) that are passed from parents to offspring. Some alleles are dominant and mask recessive alleles, only expressed when two recessive alleles are present. Mendel's experiments demonstrated that traits segregate and assort independently during reproduction according to these genetic principles. His work established the foundations of genetics, though its significance was not recognized for several decades.