Scope: Existing research suggests that (−)-epigallocatechin-3-gallate (EGCG), which is a natural tea catechin active substance, can protect against liver injury. However, its mechanism for hepatic encephalopathy (HE) treatment is still unclear. In this study, the role of EGCG in the amelioration of HE rats and the effect on the microbiota-gut-liver axis are mainly analyzed. Methods and results: Thioacetamide (TAA) is employed to induce the HE model in rats. The results of open field test show that EGCG restores locomotor activity and exploratory behavior. Histological and biochemical results demonstrate that EGCG ameliorates brain and liver damage, decreases the expression of pro-inflammatory cytokines, and increases the activity of antioxidant enzymes. Meanwhile, EGCG modulates the Nrf2 pathway and TLR4/NF-𝜿B pathway to mitigate TAA-induced oxidative stress and inflammatory responses. Immunohistochemistry reveals protection of the intestinal barrier by EGCG upregulating the expression of occludin and zonula occludens-1. Furthermore, serum levels of ammonia and LPS are reduced. 16S rRNA analysis shows that EGCG treatment increases the abundance of beneficial bacteria (e.g., Bifidobacterium, Lactobacillus, and Limosilactobacillus). Conclusion: The above results reveal that EGCG has anti-oxidative stress and anti-inflammatory effects, and ameliorates the condition through the microbiota-gut-liver axis, with potential for the treatment of HE.