Our study found that serum S100B levels were positively correlated with cognitive function in T2DM patients with cognitive impairment, which suggests that S100B may be involved in the emergence and progression of cognitive dysfunction in T2DM. This evidence concerns the gene S100B and type 2 diabetes mellitus.