Objective To analyze the cognitive function of migraine patients and explore the correlation between cognitive dysfunction and anxiety and depression.Methods A total of 165 migraine patients admitted to the Department of Psy-chosomatic of the Second People's Hospital of Lishui from Jan.2022 to Jan.2023 were selected.According to the Montre-al cognitive function assessment scale(MoCA),the patients were divided into the cognitive function decline group(42 cases,MoCA score<26 points)and the cognitive function normal group(123 cases,MoCA score ≥26 points).The cognitive function of the two groups and the degree of anxiety and depression were compared,and the correlation between cognitive dysfunction and anxiety and depression was analyzed.Results Among the 165 patients,cognitive function de-creased in 42 cases,accounting for 25.45%.The MoCA score of the group with declining cognitive function was signifi-cantly lower than that of the group with normal cognitive function[(23.52±2.16)points vs.(27.79±2.85)points,t=8.872,P<0.001].The scores of the self-rating anxiety scale(SAS),self-rating depression scale(SDS),visual ana-logue scale(VAS),and headache impact assessment scale-6(HIT-6)were significantly higher than those of the normal cognitive function group(P<0.05),respectively.Spearman correlation analysis showed that the MoCA score was posi-tively correlated with the SAS score and SDS score(r values were 0.468 and 0.492,respectively,all P<0.001).Conclusion The proportion of migraine patients with cognitive dysfunction is higher,and the degree of headache is more obvious in patients with cognitive dysfunction and has a greater impact on the quality of daily life.The cognitive dysfunc-tion of migraine is positively correlated with anxiety and depression.