Methylation occurs through the action of enzymes known as DNA methyltransferases (DNMTs). These enzymes transfer a methyl group from S-adenosylmethionine (SAM) to the cytosine ring. The most well-known DNMTs include DNMT1, DNMT3A, and DNMT3B, each with specific roles in maintaining and establishing methylation patterns.