Assortative mating refers to the tendency of individuals to mate with those who have similar phenotypes. If assortative mating occurs based on certain genetic traits, it can lead to changes in gene frequencies by increasing the frequency of specific alleles in the population.