Background: Obsessive-compulsive disorder (OCD) is characterized by alterations in brain connectivity, particularly within the default mode network (DMN) and the salience network (SN). Investigating these connectivity differences can provide a deeper understanding of the neural mechanisms underlying OCD. Methods: This cross-sectional study involved 58 patients diagnosed with OCD and 38 healthy control subjects, totaling 96 participants. Resting-state functional MRI (fMRI) data were acquired and analyzed using the CONN toolbox to examine functional connectivity within intrinsic resting-state networks. Graph theory metrics were applied to evaluate node connections and the overall network topology. Clinical symptoms were assessed using the Yale-Brown Obsessive-Compulsive Scale (Y-BOCS), and their correlations with connectivity patterns and graph-theory parameters were analyzed. Results: The OCD patients and healthy controls were matched in terms of age, gender, marital status, socioeconomic status, and handedness. However, OCD patients had significantly worse general health, quality of life, and higher levels of depression and anxiety. Network analyses revealed altered whole-brain connectivity in OCD patients, particularly within the DMN and the frontoparietal network. The most significant between-group connectivity differences were observed between the posterior parietal cortex (PPC) and the precuneus. Disruptions in the DMN, specifically altered connectivity between the medial prefrontal cortex and posterior cingulate cortex, and changes in the SN involving the anterior insula and anterior cingulate cortex, were significantly correlated with the severity of OCD symptoms. Conclusions: The findings suggest that OCD is associated with distinct alterations in DMN connectivity, which may play a critical role in the disorder's pathophysiology. These disruptions offer potential targets for therapeutic intervention. Further research is needed to explore these connectivity changes in larger cohorts and at various stages of OCD to better understand their clinical significance.