DNA methylation is an epigenetic modification that involves adding a methyl group to cytosine bases in CG dinucleotides, typically by enzymes called DNA methyltransferases (DNMT). This process occurs mainly during embryonic development but continues throughout life.