The invention relates to a formula and preparation process of a traditional Chinese medicine for treating ulcerative colitis. The formula of the traditional Chinese medicine for treating ulcerative colitis comprises the following components in parts by weight: 8-15 parts of radix paeoniae alba, 6-15 parts of Scutellaria baicalensis, 3-15 parts of Coptis chinensis, 3-12 parts of golden cypress, 6-15 parts of Angelica sinensis, 6-18 parts of pericarpium arecae and 3-12 parts of elecampane. The traditional Chinese medicine provided by the invention has the functions of clearing away heat and toxic materials, eliminating dampness, replenishing qi to invigorate the spleen and adjusting qi and blood; therefore, the formula is the optimum formula for treating ulcerative colitis. Clinical researches of the traditional Chinese medicine formula for treating ulcerative colitis display that the formula has remarkable advantages in clinical comprehensive curative effect, traditional Chinese medicine syndrome curative effect, curative effect of colonoscopy and Geboes exponential integral and is free of remarkable adverse reaction, thereby adequately displaying the superiority of the traditional Chinese medicine for treating ulcerative colitis.