Obsessive-compulsive disorder (OCD) is a common neuropsychiatric disease affecting about 2% of the general population. It is characterized by persistent intrusive thoughts and repetitive ritualized behaviors. While gene variations, malfunction of cortico-striato-thalamo-cortical (CSTC) circuits, and dysregulated synaptic transmission have been implicated in the pathogenesis of OCD, the underlying mechanisms remain largely unknown. Here we show that OCD-like behavior in mice is caused by deficiency of SPRED2, a protein expressed in various brain regions and a potent inhibitor of Ras/ERK-MAPK signaling. Excessive self-grooming, reflecting OCD-like behavior in rodents, resulted in facial skin lesions in SPRED2 knockout (KO) mice. This was alleviated by treatment with the selective serotonin reuptake inhibitor fluoxetine. In addition to the previously suggested involvement of cortico-striatal circuits, electrophysiological measurements revealed altered transmission at thalamo-amygdala synapses and morphological differences in lateral amygdala neurons of SPRED2 KO mice. Changes in synaptic function were accompanied by dysregulated expression of various pre- and postsynaptic proteins in the amygdala. This was a result of altered gene transcription and triggered upstream by upregulated tropomyosin receptor kinase B (TrkB)/ERK-MAPK signaling in the amygdala of SPRED2 KO mice. Pathway overactivation was mediated by increased activity of TrkB, Ras, and ERK as a specific result of SPRED2 deficiency and not elicited by elevated brain-derived neurotrophic factor levels. Using the MEK inhibitor selumetinib, we suppressed TrkB/ERK-MAPK pathway activity in vivo and reduced OCD-like grooming in SPRED2 KO mice. Altogether, this study identifies SPRED2 as a promising new regulator, TrkB/ERK-MAPK signaling as a novel mediating mechanism, and thalamo-amygdala synapses as critical circuitry involved in the pathogenesis of OCD.