The law of segregation is a fundamental principle of genetics that states that during the formation of gametes, the two alleles for a trait separate from each other so that each gamete carries only one allele for each gene. This concept is essential for understanding how traits are inherited and lays the groundwork for predicting the outcome of genetic crosses.