Adjuvant chemotherapy based on 5-fluorouracil (5-FU), such as FOLFOX, is suggested as a treatment for gastrointestinal cancer. Yet, intestinal damage continues to be a prevalent side effect for which there are no practical prevention measures. We investigated whether Babao Dan (BBD), a Traditional Chinese Medicine, protects against intestinal damage induced by 5-FU by controlling immune response and gut microbiota. 5-FU was injected intraperitoneally to establish the mice model, then 250 mg/kg BBD was gavaged for five days straight. 5-FU led to marked weight loss, diarrhea, fecal blood, and histopathologic intestinal damage. Administration of BBD reduced these symptoms, inhibited proinflammatory cytokine (IL-6, IL-1β, IFN-γ, TNF-α) secretion, and upregulated the ratio of CD3(+) T cells and the CD4(+)/CD8(+) ratio. According to 16S rRNA sequencing, BBD dramatically repaired the disruption of the gut microbiota caused in a time-dependent way, and increased the Firmicutes/Bacteroidetes (F/B) ratio. Transcriptomic results showed that the mechanism is mainly concentrated on the NF-κB pathway, and we found that BBD reduced the concentration of LPS in the fecal suspension and serum, and inhibited TLR4/MyD88/NF-κB pathway activation. Furthermore, at the genus level on the fifth day, BBD upregulated the abundance of unidentified_Corynebacteriaceae, Aerococcus, Blautia, Jeotgalicoccus, Odoribacter, Roseburia, Rikenella, Intestinimonas, unidentified_Lachnospiraceae, Enterorhabdus, Ruminiclostridium, and downregulated the abundance of Bacteroides, Parabacteroides, Parasutterella, Erysipelatoclostridium, which were highly correlated with intestinal injury or the TLR4/MyD88/NF-κB pathway. In conclusion, we established a network involving 5-FU, BBD, the immune response, gut microbiota, and key pathways to explain the pharmacology of oral BBD in preventing 5-FU-induced intestinal injury.