Diallyl trisulfide (DATS), a sulphur-containing compound isolated from the medicinal food plant garlic, has been previously reported to attenuate experimental colitis induced by either dextran sodium sulphate (DSS) or 2,4,6-trinitrobenzenesulfonic acid (TNBS) in mice; however, the underlying mechanism remains to be identified. In this study, we deciphered the key mechanism by which DATS alleviates ulcerative colitis (UC). We showed that oral administration of DATS for 10 consecutive days greatly restrained the infiltration of macrophages and the pathological changes in colonic tissues of mice with DSS-induced colitis. DATS treatment notably dampened the content of IL-1β and IL-18 and suppressed NLRP3 inflammasome activation in colon. Mechanistically, DATS effectively diminished the generation of ROS in macrophages. The suppressive effect of DATS on the activation of NLRP3 inflammasome and downregulation of IL-18 and IL-1β levels was blunted by xanthine oxidase. Further studies revealed that DATS inhibited NF-κB pathway activation by suppressing the expression of Trx-1, thereby inhibiting NLRP3 inflammasome activation. Trx-1 overexpression and interference in macrophages promoted and diminished NLRP3 inflammasome activation, respectively. In summary, garlic and its main active ingredient DATS have potentials to prevent and treat UC, and DATS functions by inhibiting NLRP3 inflammasome activation via Trx-1/ROS pathway.