The invention relates to a medicine for treating gastric cancer. The medicine is prepared from the following raw pharmaceutical materials by weight: 15g of salvia miltiorrhiza, 15g of radix astragali, 9g of angelica sinensis, 15g of magnolia bark, 15g of cuttlebone, 9g of costus root, 3 dried whole scorpions, 12g of peach kernel, 6g of cordyceps sinensis, 12g of honeysuckle, 15g of capillary artemisia, 12g of lysimachia, 0.6g of realgar, 15g of poria cocos, 12g of dried tangerine peel, 5 centipedes, 15g of dung beetles and 12g of glycyrrhiza uralensis. For poor stomach Qi, 9g of dried pinellia, 12g of bamboo shavings and 12g of citrus aurantium are added; for weakness of the spleen and stomach, 12g of atractylodes macrocephala, 20g of yams and 12g of coix seeds are added. The medicine treats both symptoms and root causes and is direct in drug effect and low in side effect.