In logistic regression analysis, age (P < 0.05), body mass index (BMI) (P < 0.05), C-reactive protein (CRP) (P < 0.05), and BDNF (P < 0.01) were independently associated with T2DM. This evidence concerns the gene BDNF and type 2 diabetes mellitus.