Encodes a chromomethylase involved in methylating cytosine residues at non-CG sites. Involved in preferentially methylating transposon-related sequences, reducing their mobility. CMT3 interacts with an Arabidopsis homologue of HP1 (heterochromatin protein 1), which in turn interacts with methylated histones. Involved in gene silencing.