The product of the dcm gene is the only DNA cytosine-C5 methyltransferase of Escherichia coli K-12; it catalyses transfer of a methyl group from S-adenosyl methionine (SAM) to the C-5 position of the inner cytosine residue of the cognate sequence CCA/TGG.