BackgroundIrritable bowel syndrome (IBS) is a chronic disorder of the gut-brain axis with significant morbidity. Triptolide, an active compound extracted from Tripterygium wilfordii Hook F (TwHF), has been widely used as a major medicinal herb in the treatment of inflammatory disease.MethodsThe chronic-acute combined stress (CAS) stimulation was used to establish IBS rat model. The model rats were then gavaged with triptolide. Forced swimming, marble-burying, fecal weight and abdominal withdrawal reflex (AWR) score were recorded. Pathologic changes in the ileal and colonic tissues were validated by hematoxylin and eosin staining. The inflammatory cytokines and Ornithine Decarboxylase-1 (ODC1) in the ileal and colonic tissues were performed by ELISA and WB.ResultsTriptolide didn’t have antidepressant- and antianxiety- effects in rats caused by CAS, but decreased fecal weight and AWR score. In addition, Triptolide reduced the release of IL-1, IL-6, and TNF-α and the expression of ODC1 in the ileum and colon.ConclusionThe therapeutic efficacy of triptolide for IBS induced by CAS was revealed in this study, which may be related to the reduction of ODC1.Supplementary InformationThe online version contains supplementary material available at 10.1186/s12876-023-02847-8.