The restricted cubic splines showed that the serum FGF23, α-klotho levels and FGF23/α-klotho ratio were linearly correlated with T2DM (P for overall < 0.05; Fig. 2a, d, g). Here, FGF23 is linked to type 2 diabetes mellitus.