In the control group, there was a positive correlation between cognition and BDNF level, whereas the relationship in T2DM was negative. This evidence concerns the gene BDNF and type 2 diabetes mellitus.