Mendel discovered the basic principles of heredity, including the Law of Dominance, the Law of Segregation, and the Law of Independent Assortment, by experimenting with pea plants.