Our results indicate that hyperglycemia significantly alters OPG and RANKL levels, thereby altering bone resorptive mechanisms in type 2 diabetes. This evidence concerns the gene TNFSF11 and type 2 diabetes mellitus.