These results indicate that salidroside protects against ovariectomy and diabetes induced bone loss by upregulating OPG/RANKL ratio. Here, TNFRSF11B is linked to diabetes mellitus.