By the 1800s, farmers had already known for thousands of years that crossbreeding the best plants together could lead to more favorable offspring, but nobody understood how it worked
Mendel did the same experiments with other traits like plant height and flower color, and found the same pattern of dominant and recessive hereditary units
Scientists noticed similarities between chromosomes and Mendel's hereditary units, and came up with the idea that these units (now called genes) were on the chromosomes