In summary, our results reveal that ApoE ε4 genotype was associated with cognitive dificits in Chinese Han T2DM patients, and GSK‐3β plays a mediative role between ApoE ε4 and cognitive impairment. Here, GSK3B is linked to type 2 diabetes mellitus.