These results indicated that GGJTW could alleviate symptoms of type 2 diabetic rats by regulating the gut microbiota, promoting the production of PBAs, and upregulating the PBA-FXR/TGR5-GLP-1 pathway. This evidence concerns the gene GPBAR1 and type 2 diabetes mellitus.