T2DM was positively linearly related to serum FGF23 concentration and FGF23/α-klotho ratio, and negatively correlated with serum α-klotho concentration. This evidence concerns the gene KL and type 2 diabetes mellitus.