The invention discloses an application of a turmeric and rhzoma zingiberis purrurei stomach pain recipe to preparation of medicines for treating inflammatory bowel diseases. The turmeric and rhzoma zingiberis purrurei stomach pain recipe is a mixture which is obtained by performing mixing and extracting on turmeric, rhzoma zingiberis purrurei, delavay stephania roots, grassleaf sweetflag rhizomesand semen integrifoliae through the weight ratio relationship of 1:1:1:1:1. Tests prove that the turmeric and rhzoma zingiberis purrurei stomach pain recipe can notably improve mouse colitis diseasesinduced by dextran sulfate sodium, the activity indexes of mouse diseases can be notably reduced, and the mouse colon contraction in length caused by modeling can be obviously improved. The vitality of MPO in serum can be notably reduced, the content of proinflammatory factors IL-1 beta, IL-6 and IL-1 beta in colon tissues can be notably reduced, and the application has notable activity for resisting ulcerative colitis, and has favorable application prospects in preparation of medicines for treating inflammatory bowel diseases.