Gregor Mendel conducted experiments with pea plants in the mid-1800s and discovered the basic principles of heredity. He found that traits such as height, flower color, and seed shape were inherited based on discrete units later called genes. A gene can exist in two forms called alleles, with one allele being dominant and determining the physical trait while the recessive allele is hidden. Mendel's work established the foundations of genetics and heredity.