In the causal relationship between FGF21 and osteoporosis, the mediating effects of Type 2 diabetes and Basal metabolic rate were 14.96% and 12.21%, respectively (Table 2). Here, FGF21 is linked to type 2 diabetes mellitus.