Gregor Mendel conducted experiments with pea plants in his monastery garden to study heredity and the transmission of traits from parents to offspring. He observed seven traits in pea plants that each had two contrasting variants. Through controlled pollination experiments over multiple generations, he discovered that traits are transmitted through discrete factors, now known as genes. His work established the laws of segregation and independent assortment, laying the foundation for modern genetics.