The invention discloses a traditional Chinese medicine for treating gastric cancer, and belongs to the field of traditional Chinese medicines. The traditional Chinese medicine is prepared from 12g of oldenlandia diffusa, 10g of the fruit of Chinese wolfberry, 10g of semen coicis, 9g of astragalus mongholicus, 9g of codonopsis pilosula, 8g of sculellaria barbata, 8g of angelica sinensis, 8g of radix paeoniae alba, 5g of endothelium corneum gigeriae galli, 5g of honeysuckle, 5g of pseudo-ginseng, 5g of fructus forsythia and 5g of frankincense. The traditional Chinese medicine has the following functions of nourishing liver and kidney, improving the production of body fluid and nourishing blood, invigorating stomach, helping to digest, prompting Qi circulation to relieve pain and clearing away heat and toxic materials and also plays roles in fighting bacterium and diminishing inflammation, draining pus and expelling toxin and removing swelling and lump on the basis of invigorating health effectively and immunity, and is capable of significantly inhibiting spread and transfer of cancer cells, reducing symptoms of patients with gastric carcinoma and prolonging the survival time of patients; in addition, the traditional Chinese medicine has no toxic and side effects so as to be especially beneficial for advanced gastric cancer patients.