The invention relates to a traditional Chinese medicine composition for preventing and treating ulcerative colitis and eczema, a preparation method and application thereof. The composition includes the following raw materials: phoenix, pulsatilla, Burnet, chinensis, Patrinia, amomum, fried Atractylodes macrocephala, fried gorgon, Bupleurum, angelica, white peony root, woody fragrance, platycodon grandiflorum, hibiscus flower, roasted licorice, Catechu and sarsaparilla. The traditional Chinese medicine composition of the present invention has strong effects of clearing away heat and detoxifying, cooling blood and stopping dysentery. It can effectively improve symptoms such as abdominal pain, diarrhea, tenesmus, mucus, pus and blood in feces during the attack of ulcerative colitis, and has a clear curative effect. , low price, not easy to relapse after drug withdrawal. At the same time, this formula can also treat eczema, and can improve the symptoms of ulcerative colitis and eczema in patients at the same time, avoiding the reduction of drug efficacy and increase of adverse reactions that may be caused by combined medication.