RNA-directed DNA methylation (RdDM) is an epigenetic pathway in plants and fungi where small RNAs direct DNA methylation and transcriptional gene silencing. The process involves RNA polymerase IV transcribing RNA from the locus to be silenced. This RNA is then copied to double stranded RNA by RNA-dependent RNA polymerase 2 and processed into 24 nucleotide small interfering RNAs by Dicer-like 3. Argonaute 4 incorporates these siRNAs and guides DNA methyltransferases like Domains Rearranged Methyltransferase 2 to introduce methyl groups at cytosines in DNA, leading to transcriptional gene silencing of the locus. RdDM is an important genome defense mechanism in plants against viruses.