Zhili decoction ameliorates ulcerative colitis by modulating gut microbiota and related metabolite, and inhibiting the TLR4/NF-κB/NLRP3 pathway. Here, NFKB1 is linked to ulcerative colitis.