Gene drives operate using a variety of mechanisms, but the most common is the CRISPR-Cas9 system. This system introduces a targeted DNA sequence into the genome, which then replicates itself in a way that ensures it is inherited by almost all offspring. This can lead to the rapid spread of the desired genetic trait throughout a population.