Genetic drift and gene flow

Allele frequencies also change by chance, most strongly in small populations after a bottleneck or a founding, and by migration between populations.

From AP Biology.