Dnmt1 and Dnmt3a are important DNA methyltransferases that are expressed in postmitotic neurons, but their function in the CNS is unclear. We generated conditional mutant mice that lack Dnmt1, Dnmt3a or both exclusively in forebrain excitatory neurons and found that only double knockout (DKO) mice showed abnormal long-term plasticity in the hippocampal CA1 region together with deficits in learning and memory. Although we found no neuronal loss, hippocampal neurons in DKO mice were smaller than in the wild type; furthermore, DKO neurons showed deregulated expression of genes, including the class I MHC genes and Stat1, that are known to contribute to synaptic plasticity. In addition, we observed a significant decrease in DNA methylation in DKO neurons. We conclude that Dnmt1 and Dnmt3a are required for synaptic plasticity, learning and memory through their overlapping roles in maintaining DNA methylation and modulating neuronal gene expression in adult CNS neurons.