Mechanistically, LGB improved the composition and abundance of GM in T2DM mice, elevated SCFA levels, inhibited the LPS/TLR4/NF-κB signaling pathway, alleviated intestinal inflammation, and enhanced the intestinal barrier. The gene discussed is TLR4; the disease is type 2 diabetes mellitus.