The invention provides a traditional Chinese medicine composition for treating cancer. The traditional Chinese medicine composition takes astragalus membranaceus, angelica sinensis, codonopsis pilosula, atractylodes macrocephala, poria cocos and liquorice as sovereign drugs, and the sovereign drugs are compatible with one another, benefit qi and blood, remove blood stasis, and achieve the efficacy that pathogenic qi cannot invade the body if antipathogenic qi remains strong; the traditional Chinese medicine composition takes scorpio, scolopendra subspinipes, arisaema heterophyllum and unprocessed rhizoma pinelliae as ministerial drugs, the scorpio and scolopendra subspinipes have the efficacies of checking tetany, eliminating toxic material, removing stasis and relieving pain; the arisaema heterophyllum and unprocessed rhizoma pinelliae are used for eliminating phlegm-damp stagnation; the traditional Chinese medicine composition takes nidus vespae, turtle shell, tortoise shell, radixaconite, radix aconiti agrestis, haematitum and dioscoreaceae as adjuvant drugs, and the haematitum and nidus vespae are used for calming the adverse-rising energy and calming the middle; the turtle shell and tortoise shell are used for removing mass in the abdomen and dissipating tumor; the traditional Chinese medicine composition takes citrus reticulata blanco, fritillaria thunbergii, common burreed rhizome, curcuma zedoaria and manis pentadactyla as conductant drugs, and the citrus reticulata blanco, common burreed rhizome, curcuma zedoaria and fritillaria thunbergii are used for dispersingthe liver and rectifying qi; the manis pentadactyla directly goes to focuses, and the efficacy is timely and accurate; the drugs are compatible, have the efficacies of calming viscus, invigorating qiand promoting blood circulation, tonifying qi and strengthening exterior, counteracting toxic substances and removing stasis, activating meridians to stop pain and removing blood stasis and stagnation, and effectively prevent and treat esophagus cancer, stomach cancer, gastric cancer, intestinal cancer and cervical cancer.