The invention discloses a traditional Chinese medicine for treating gastric cancer. The traditional Chinese medicine is prepared by using the following raw medicines, by weight, 12-30 parts of Radix Curcumae Aromaticae, 15-40 parts of Pinellia Tuber, 5-20 parts of Artemisia capillaries, 2-10 parts of sliced ginger, 3-15 parts of rhizoma gastrodiae, 5-20 parts of unprepared Atractylis lancea, 10-20 parts of Cordyceps sinensis, 3-15 parts of Lithospermum erythrorhizon, 4-10 parts of Isatis Root, 5-20 parts of radix bupleuri, 11-25 parts of Camomile, 12-25 parts of honeysuckle flower, 13-27 parts of Trichosanthis Radix, 1-3 parts of Lophatherum gracile, 2-6 parts of Wrinkled Gianthyssop, 2-10 parts of Radix Puerariae, 2-10 parts of hawthorn fruit, 2-10 parts of periostracum cicadae, 6-8 parts of Akebia Stem, 3-7 parts of soybean, 8-10 parts of betel nut, 4-6 parts of Phytolacca acinosa Roxb, 4-8 parts of Gentiana macrophylla, 3-6 parts of Chinese prickly ash, 6-12 parts of Musa sapientum L., 3-8 parts of Sophora flavescens and 5-20 parts of millet sprout.