In our study, the upregulation of RANKL expression in T2DM rats points to elevated bone resorption in the T2DM group. Here, TNFSF11 is linked to type 2 diabetes mellitus.