Autism spectrum disorder (ASD) is a neurodevelopmental disease with a strong heritability, but recent evidence suggests that epigenetic dysregulation may also contribute to the pathogenesis of ASD. Especially, increased methylation at the MECP2 promoter and decreased MECP2 expression were observed in the brains of ASD patients. However, the causative relationship of MECP2 promoter methylation and ASD has not been established. In this study, we achieved locus-specific methylation at the transcription start site (TSS) of Mecp2 in Neuro-2a cells and in mice, using nuclease-deactivated Cas9 (dCas9) fused with DNA methyltransferase catalytic domains, together with five locus-targeting sgRNAs. This locus-specific epigenetic modification led to a reduced Mecp2 expression and a series of behavioral alterations in mice, including reduced social interaction, increased grooming, enhanced anxiety/depression, and poor performance in memory tasks. We further found that specifically increasing the Mecp2 promoter methylation in the hippocampus was sufficient to induce most of the behavioral changes. Our finding therefore demonstrated for the first time the casual relationship between locus-specific DNA methylation and diseases symptoms in vivo, warranting potential therapeutic application of epigenetic editing.