This study found that the value of the RANKL/OPG ratio in the DM group was significantly lower than in the osteoporosis and control groups. This evidence concerns the gene TNFSF11 and osteoporosis.