BACKGROUND Jianpi-Huatan-Huoxue-Anshen formula [Tzu-Chi cancer-antagonizing & life-protecting II decoction (TCCL)] is a Chinese medical formula that has been clinically shown to reduce the gastrointestinal side effects of chemotherapy in cancer patients and improve their quality of life. However, its effect and mechanism on the intestinal microecology after chemotherapy are not yet clear. AIM To discover the potential mechanisms of TCCL on gastrointestinal inflammation and microecological imbalance in chemotherapy-treated mice transplanted with hepatocellular carcinoma (HCC). METHODS Ninety-six mice were inoculated subcutaneously with HCC cells. One week later, the mice received a large dose of 5-fluorouracil by intraperitoneal injection to establish a HCC chemotherapy model. Thirty-six mice were randomly selected before administration, and feces, ileal tissue, and ileal contents were collected from each mouse. The remaining mice were randomized into normal saline, continuous chemotherapy, Yangzheng Xiaoji capsules-treated, and three TCCL-treated groups. After treatment, feces, tumors, liver, spleen, thymus, stomach, jejunum, ileum, and colon tissues, and ileal contents were collected. Morphological changes, serum levels of IL-1β, IL-6, IL-8, IL-10, IL-22, TNF-α, and TGF-β, intestinal SIgA, and protein and mRNA expression of ZO-1, NF-κB, Occludin, MUC-2, Claudin-1, and IκB-α in colon tissues were documented. The effect of TCCL on the abundance and diversity of intestinal flora was analyzed using 16S rDNA sequencing. RESULTS TCCL treatment improved thymus and spleen weight, thymus and spleen indexes, and body weight, decreased tumor volumes and tumor tissue cell density, and alleviated injury to gastric, ileal, and colonic mucosal tissues. Among proteins and genes associated with inflammation, IL-10, TGF-β, SIgA, ZO-1, MUC-2, and Occludin were upregulated, whereas NF-κB, IL-1β, IL-6, TNF-α, IL-22, IL-8, and IκB-α were downregulated. Additionally, TCCL increased the proportions of fecal Actinobacteria , AF12 , Adlercreutzia , Clostridium , Coriobacteriaceae , and Paraprevotella in the intermediate stage of treatment, decreased the proportions of Mucipirillum , Odoribacter , RF32 , YS2 , and Rikenellaceae but increased the proportions of p_Deferribacteres and Lactobacillus at the end of treatment. Studies on ileal mucosal microbiota showed similar findings. Moreover, TCCL improved community richness, evenness, and the diversity of fecal and ileal mucosal flora. CONCLUSION TCCL relieves pathological changes in tumor tissue and chemotherapy-induced gastrointestinal injury, potentially by reducing the release of pro-inflammatory factors to repair the gastrointestinal mucosa, enhancing intestinal barrier function, and maintaining gastrointestinal microecological balance. Hence, TCCL is a very effective adjuvant to chemotherapy.