Final answer:
Genetic drift is the evolutionary mechanism that alters allele frequencies by chance.
Step-by-step explanation:
The evolutionary mechanism that alters allele frequencies by chance is called genetic drift. Genetic drift is the random change in allele frequencies in a population due to chance events. This can result in the loss or fixation of specific alleles over time.