Schizophrenia (SZ) and obsessive-compulsive disorder (OCD) share several epidemiological and clinical features, but the neurobiological substrates shared by these two diseases remain unclear. This study aimed to explore the similarities and differences in brain function between them using near-infrared spectroscopy (NIRS). Eventually, 130 SZ patients, 70 OCD and 75 normal controls (NCs) were enrolled. A 52-channel NIRS instrument was used to detect the concentration changes in oxygenated hemoglobin ([oxy-Hb]) during the verbal fluency task. Ten regions of interests (ROIs) were defined: the bilateral dorsolateral prefrontal cortex (DLPFC), frontopolar cortex (FPC), orbitofrontal cortex (OFC), inferior prefrontal gyrus (IFG) and temporal gyrus (TG). Through two different analysis strategies based on channels or ROIs, we compared the [oxy-Hb] changes in three groups by one-way analysis of variance (ANOVA) and post-hoc tests. Across 52 channels, compared to the NC group, both SZ and OCD groups exhibited reduced activity in 17 channels, including left FPC, left DLPFC, bilateral OFC, IFG, middle TG, supplementary motor cortex and Broca’s area, while SZ showed lower activity in channel 35 (right OFC) than OCD patients. Across all ROIs, compared to the NC group, both SZ and OCD groups showed reduced activity in 7 ROIs, including left FPC, bilateral OFC, IFG and TG, while SZ showed lower activity in the right OFC than OCD group, which were almost consistent with the results based on channels. This study suggests SZ and OCD present with some similar neuropathological changes, while SZ shows more severe impairment in the right OFC than OCD.