A selective sweep occurs when a beneficial mutation becomes fixed in a population, reducing genetic diversity near the mutation site due to strong positive selection. This process leaves a distinct signature in the genome, which can be identified to study evolutionary dynamics and adaptation.