This repository contains preprocessed resting-state fMRI data including two datasets of obsessive-compulsive disorder (OCD): patients in baseline and patients with capsulotomy. The baseline dataset consists 104 OCD patients and 82 healthy controls were anonymously enrolled from our Institutional database. Part of the data from this cohort has been published previously [1, 2]. In this baseline dataset, 27 refractory patients underwent ventral capsulotomy with complete postoperative MRI scanning and clinical assessment. Exclusion/inclusion criteria, surgical procedure, and detailed clinical information were described in previously published work [1]. Clinical assessment included Y-BOCS, HAM-A, and HAM-D (17-item version). The fMRI data were minimally preprocessed using Statistical Parametric Mapping; the preprocessing pipeline details were described in previous studies [1, 2]. 1. Yin D, Zhang C, Lv Q, Chen X, Zeljic K, Gong H, et al. Dissociable frontostriatal connectivity: mechanism and predictor of the clinical efficacy of capsulotomy in obsessive-compulsive disorder. Biol Psychiatry. 2018;84:926–36. 2. Chen X, Wang Z, Lv Q, Lv Q, van Wingen G, Fridgeirsson EA, Denys D, Voon V, Wang Z. Common and differential connectivity profiles of deep brain stimulation and capsulotomy in refractory obsessive-compulsive disorder. Mol Psychiatry. 2022;27(2):1020-1030.