Methyl gallate, the active component of Sanguisorba officinalis L., has a therapeutic effect on ulcerative colitis, and its mechanism may be related to regulating polarization of macrophages, inhibiting activation of the TLR4/NF-κB signaling pathway and apoptosis of colon cells. Here, NFKB1 is linked to ulcerative colitis.