Genetics is the study of genes, heredity, and genetic variation. Gregor Mendel conducted experiments with pea plants in the 1800s and established the principles of inheritance, including dominance, segregation, and independent assortment. His work showed that traits are passed from parents to offspring through discrete units called genes. Monohybrid and dihybrid crosses examine the inheritance of one or two traits and can be represented using Punnett squares. Mendel's principles form the basis of modern genetics.