DNA methylation has emerged as a critical modulator of neuronal plasticity and cognitive function. Notwithstanding, the role of enzymes that demethylate DNA remain to be fully explored. Here, we report that loss of ten-eleven translocation methylcytosine dioxygenase 2 (Tet2), which catalyzes oxidation of 5-methylcytosine (5mC) to 5-hydroxymethylcytosine (5hmC), in adult neurons enhances cognitive function. In the adult mouse hippocampus, we detected an enrichment of Tet2 in neurons. Viral-mediated neuronal overexpression and RNA interference of Tet2 altered dendritic complexity and synaptic-plasticity-related gene expression in vitro. Overexpression of neuronal Tet2 in adult hippocampus, and loss of Tet2 in adult glutamatergic neurons, resulted in differential hydroxymethylation associated with genes involved in synaptic transmission. Functionally, overexpression of neuronal Tet2 impaired hippocampal-dependent memory, while loss of neuronal Tet2 enhanced memory. Ultimately, these data identify neuronal Tet2 as a molecular target to boost cognitive function.