The Hardy-Weinberg equilibrium is a principle stating that in an infinite population, with no migration, mutation, natural selection, or genetic drift, the frequencies of alleles and genotypes in a population will remain constant from generation to generation.