The invention provides traditional Chinese medicine for treating cancer. The traditional Chinese medicine comprises rhizoma sparganii, subprostrate sophora, the root of red-rooted salvia, radix scrophulariae, the root of straight ladybell, codonopsis pilosula, radix angelicae, angelica sinensis, the root of common peony, curcuma aromatica, radix scutellariae, poria cocos, curcuma zedoary, thunberg fritillary, the seed of garden balsam, dandelions, cortex moutan, cinnabar, eupolyphaga, trogopterus dung, flos carthami, cordyceps sinensis, manis pentadactyla, elecampane, rhizoma corydalis, leeches, earthworm and platycodon grandiflorum. By taking the traditional Chinese medicine, the immunity of a patient can be improved, the capacity of human body leukocyte for killing cancer cells can be enhanced, and the effects of viscera benefiting, excitement tranquilizing and allaying, swelling and pain relieving, qi promoting, collateral obstruction removing, lump gradual reducing, patient pain relieving, life quality improving and service life prolonging are achieved. Through improvement of the immunity of the patient, the patient can remove cancer cells by the resistance of the patient. The effect of relapse preventing can be achieved after the patient is subjected to operation, radiotherapy and chemotherapy. Pain of a terminal cancer patient can be relieved if the patient takes the medicine, and the life of the patient can be prolonged. A good curative effect can be achieved if an early cancer patient takes the medicine.