The anterior cingulate cortex (ACC) and visual cortex are integral components of the neurophysiological mechanisms underlying migraine, yet the impact of altered connectivity patterns between these regions on migraine treatment remains unknown. To elucidate this issue, we investigated the abnormal causal connectivity between the ACC and visual cortex in patients with migraine without aura (MwoA), based on the resting‐state functional magnetic resonance imaging data, and its predictive ability for the efficacy of nonsteroidal anti‐inflammatory drugs (NSAIDs). The results revealed increased causal connectivity from the bilateral ACC to the lingual gyrus (LG) and decreased connectivity in the opposite direction in nonresponders compared with the responders. Moreover, compared with the healthy controls, nonresponders exhibited heightened causal connectivity from the ACC to the LG, right inferior occipital gyrus (IOG) and left superior occipital gyrus, while connectivity patterns from the LG and right IOG to the ACC were diminished. Based on the observed abnormal connectivity patterns, the support vector machine (SVM) models showed that the area under the receiver operator characteristic curves for the ACC to LG, LG to ACC and bidirectional models were 0.857, 0.898, and 0.939, respectively. These findings indicate that neuroimaging markers of abnormal causal connectivity in the ACC‐visual cortex circuit may facilitate clinical decision‐making regarding NSAIDs administration for migraine management.