DNA methylation is an epigenetic mechanism that involves the addition of a methyl group to the DNA molecule. This process typically occurs at cytosine bases that are followed by guanine, known as CpG sites. Methylation can affect gene expression without altering the underlying DNA sequence, usually by repressing gene transcription.