Non-alcoholic fatty liver disease (NAFLD), the most common chronic liver disease, had no approved pharmacological agents yet. Obeticholic acid (OCA), a novel bile acid derivative, was demonstrated to ameliorate NAFLD-related manifestations. Regarding the role of gut-liver axis in liver disease development, this study aimed to explore the potential role of gut microbiota in the treatment of OCA in NAFLD mice induced by the high-fat diet (HFD). Antibiotic-induced microbiome depletion (AIMD) and fecal microbiota transplantation (FMT) confirmed the critical role of gut microbiota in OCA treatment for NAFLD by effectively alleviating histopathological lesions and restoring liver function impaired by HFD. Metagenomic analysis indicated that OCA intervention in HFD mice remarkably increased the abundance ofAkkermansia muciniphila,Bifidobacteriumspp.,Bacteroidesspp.,Alistipesspp.,Lactobacillusspp.,Streptococcus thermophilus, andParasutterella excrementihominis. Targeted metabolomics analysis indicated that OCA could modulate host bile acids pool by reducing levels of serum hydrophobic cholic acid (CA) and chenodeoxycholic acid (CDCA), and increasing levels of serum-conjugated bile acids, such as taurodeoxycholic acid (TDCA) and tauroursodesoxycholic acid (TUDCA) in the HFD-fed mice. Strong correlations were observed between differentially abundant microbes and the shifted bile acids. Furthermore, bacteria enriched by OCA intervention exhibited much greater potential in encoding 7alpha-hydroxysteroid dehydrogenase (7α-HSDs) producing secondary bile acids rather than bile salt hydrolases (BSHs) mainly responsible for primary bile acid deconjugation. In conclusion, this study demonstrated that OCA intervention altered gut microbiota composition with specially enriched gut microbes modulating host bile acids, thus effectively alleviating NAFLD in the mice.