Our study suggests that the increased expression of FGF21 may lead to the decrease of bone mineral density and increase the risk of osteoporosis, while type 2 diabetes and basal metabolic rate may play a mediating role in the relationship between FGF21 and osteoporosis. This evidence concerns the gene FGF21 and type 2 diabetes mellitus.