The results of mediating MR Analysis showed that the causal relationship between FGF21 and osteoporosis was mediated by Type 2 diabetes and Basal metabolic rate, and the proportion of mediating effect was 14.96% and 12.21%, respectively. The gene discussed is FGF21; the disease is type 2 diabetes mellitus.