BackgroundFibroblast growth factor 21 (FGF21) is an important regulator of glycolipid metabolism. However, whether the gut microbiota is related to the anti-diabetic and obesity effects of FGF21 remains unclear. MethodsOur research used KO/KO db/db male mice and streptozotocin (STZ)-induced to simulate the construction of two type II diabetic mellitus (T2DM) models, and detected impaired glucose tolerance in the model by using the ipGTT and ITT assays, and collected feces from the model mice for sequencing of the intestinal flora and the content of short-chain fatty acids. H&E staining was used to detect changes in intestinal tissue, the serum levels of LPS and GLP-1 were detected by ELISA. ResultsIn this study, we found that FGF21 significantly improved insulin sensitivity, attenuated intestinal lesions, and decreased serum lipopolysaccharide (LPS) concentrations in T2DM mice. Moreover, FGF21 reshaped the gut microbiota and altered their metabolic pathways in T2DM mice, promoting the production of short-chain fatty acids (SCFAs) and the secretion of glucagon-like peptide 1 (GLP-1). Fecal transplantation experiments further confirmed that feces from FGF21-treated diabetic mice demonstrated similar effects as FGF21 in terms of anti-diabetic activity and regulation of gut microbiota dysbiosis. Additionally, the antibiotic depletion of gut microbiota abolished the beneficial effects of FGF21, including increased GLP-1 secretion and fecal SCFA concentration. Additionally, the FGF21 effects of ameliorating intestinal damage and suppressing plasma LPS secretion were suppressed. All these findings suggest that FGF21 prevents intestinal lesions by modifying the gut microbiota composition. Furthermore, FGF21 affected bile acid synthesis by inhibiting CYP7A1, the key enzyme of bile acid synthesis. ConclussionTherefore, FGF21 enriched beneficial bacteria by preventing bile acid synthesis and stimulating the secretion of the intestinal hormone GLP-1 via the increased production of gut microbiota metabolites, thereby exerting its anti-diabetic effects.