The role of BDNF in the diabetes-related cognitive impairment was investigated through mediation analysis. The gene discussed is BDNF; the disease is diabetes mellitus.