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. This evidence concerns the gene APOE and Cognitive impairment.