We revealed in the present study through correlation and mediation analyses that ApoE ε4 can lead to cognitive impairments in T2DM patients by elevating GSK‐3β activity. The gene discussed is APOE; the disease is Cognitive impairment.