The invention discloses a traditional Chinese medicine preparation for treating gastric ulcer. The traditional Chinese medicine preparation is prepared from the following raw medicines in parts by weight: 10-20 parts of milk vetch, 10-20 parts of Chinese yam, 10-20 parts of hyacinth bletilla, 10-20 parts of bupleurum, 10-20 parts of cortex magnoliae officinalis, 10-20 parts of white peony root, 10-20 parts of bighead atractylodes rhizome, 10-20 parts of tuckahoe, 10-20 parts of licorice, 10-20 parts of costus root, 10-20 parts of pericarpium arecae, 10-20 parts of coptis, 10-20 parts of dried orange peel, 10-20 parts of golden-rod, 10-20 parts of notoginseng, 10-20 parts of bitter orange, 10-20 parts of giant knotweed, 10-20 parts of ginger, 10-20 parts of erigeron breviscapus, 10-20 parts of red sage root and 10-20 parts of cuttlebone. The traditional Chinese medicine preparation disclosed by the invention has the functions of calming the liver, relieving pain, regulating the flow of qi, strengthening the spleen, reinforcing the spleen, lung and kidney, strengthening the middle-jiao, invigorating qi, stopping bleeding and preventing people from vomiting, and is mainly used for treating deficiency of the spleen and stomach and weakness of the spleen and stomach. The traditional Chinese medicine preparation disclosed by the invention can achieve the purposes of relieving diarrhoea, diminishing inflammation, relieving spasm and pain, improving local blood circulation and metabolism, enhancing the immunologic function of the intestinal tract, and promoting ulcer healing. The invention has the advantages that the preparation processes are simple and convenient, the toxic side effects are small, the administration is convenient, the traditional Chinese medicine preparation can be prepared easily, and the cost is low.