Current evidence has linked dietary resveratrol (RSV) intake to the activation of brown adipose tissue (BAT) and induction of white adipose tissue (WAT) browning, which may be a potential means of improving glucose homeostasis. However, the underlying mechanisms remain unclear. A diet containing RSV was fed to db/db mice for 10 weeks, following which the body weight, adipose tissue accumulation, bile acid (BA) profiles, and markers of BA metabolism were analyzed. Oral glucose tolerance testing, immunohistochemistry, and gut microbiota sequencing were also performed. RSV intervention improved glucose homeostasis in db/db mice, which was linked to the enhanced BAT activity and WAT browning. Moreover, RSV-treated mice exhibited altered plasma and fecal BA compositions and significant remodeling of the gut microbiota, the latter confirmed by a higher level of lithocholic acid (LCA) in the plasma and feces. LCA was identified to be the agonist of Takeda G-protein coupled receptor 5 (TGR5), which mediated the BAT activation and WAT browning by upregulating uncoupling protein 1 (UCP1) expression. Furthermore, depletion of the gut microbiota using antibiotics partially abolished the beneficial effects of RSV against glucose intolerance. Finally, microbiota transplantation experiments demonstrated that the RSV-induced beneficial effects were transferable, indicating that these effects were largely dependent on the gut microbiota. These data indicate that RSV administration improves glucose homeostasis by enhancing BAT activation and WAT browning, a mechanism that might partially be mediated by the gut microbiota-BA-TGR5/UCP1 pathway.