Mediation analysis revealed that BMI reduction accounted for 10.1% of the association between ln-transformed FGF19 levels and diabetes. Here, FGF19 is linked to diabetes mellitus.