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. The gene discussed is GSK3B; the disease is Cognitive impairment.