The results reveal a positive association of ApoE ε4 with cognitive decline in T2DM patients, and a mediative role of GSK‐3β activation between the ApoE ε4 and cognitive impairment. Here, APOE is linked to type 2 diabetes mellitus.