Obsessive-compulsive disorder (OCD) is a common psychiatric disorder defined by the presence of obsessive thoughts and repetitive compulsive actions, and it often encompasses anxiety and depressive symptoms. Recently, the corticostriatal circuitry has been implicated in the pathogenesis of OCD. However, the etiology, pathophysiology and molecular basis of OCD remain unknown. Several studies indicate that the pathogenesis of OCD has a genetic component. Here we demonstrate that loss of a neuron-specific transmembrane protein, SLIT and NTRK-like protein-5 (Slitrk5), leads to OCD-like behaviors in mice, which manifests as excessive self-grooming and increased anxiety-like behaviors, and is alleviated by the selective serotonin reuptake inhibitor fluoxetine. Slitrk5/mice show selective overactivation of the orbitofrontal cortex, abnormalities in striatal anatomy and cell morphology and alterations in glutamate receptor composition, which contribute to deficient corticostriatal neurotransmission. Thus, our studies identify Slitrk5 as an essential molecule at corticostriatal synapses and provide a new mouse model of OCD-like behaviors.