Background: Contemporary functional MRI (fMRI) methods can provide a wealth of information about the neural mechanisms associated with primary insomnia (PI), which centrally involve neural network circuits related to spatial working memory. Methods: A total of 30 participants diagnosed with PI and without atypical brain anatomy were selected along with 30 age- and gender-matched healthy controls. Subjects were administered the Pittsburgh Sleep Quality Index (PSQI), Hamilton Rating Scale for Depression and clinical assessments of spatial working memory, followed by an MRI scan and fMRI in spatial memory task state. Results: Statistically significant differences between PSQI and spatial working memory were observed between PI patients and controls (p < 0.01). Activation of neural networks related to spatial memory task state in the PI group was observed at the left temporal lobe, left occipital lobe and right frontal lobe. Lower levels of activation were observed in the left parahippocampal gyrus, right parahippocampal gyrus, bilateral temporal cortex, frontal cortex and superior parietal lobule. Conclusion: Participants with PI exhibited characteristic abnormalities in the neural network connectivity related to spatial working memory. These results may be indicative of an underlying pathological mechanism related to spatial working memory deterioration in PI, analogous to recently described mechanisms in other mental health disorders.