The invention relates to a medicine for treating liver cancer, and in particular relates to a traditional Chinese medicine composition for treating liver cancer, which is prepared by taking plant Chinese herbal medicines as raw materials. The traditional Chinese medicine composition is characterized in that effective components are prepared from active pharmaceutical ingredients according to in parts by weight: 10-20 parts of radix pseudostellariae, 10-20 parts of Rhizoma Atractylodis Macrocephalae, 5-10 parts of licorice, 10-20 parts of poria cocos, 10-20 parts of rhizoma alismatis, 10-20 parts of astragalus membranaceus, 20-30 parts of spreading hedyotis herb, 10-20 parts of turtle shell, 20-30 parts of Sculellaria barbata, 15-20 parts of salvia miltiorrhiza, 5-10 parts of centipede, 10-20 parts of hericium erinaceus, 10-20 parts of cortex phellodendri, 10-20 parts of Trametes versicolor, 20-30 parts of fructus schisandrae, 15-20 parts of rhizoma zedoariae, 20-30 parts of fructus aurantii, 15-20 parts of rhizoma sparganii, 15-20 parts of herba artemisiae, 15-20 parts of radix curcumae and 15-20 parts of Gardenia jasminoides Ellis. After the medicines are combined, the traditional Chinese medicine composition provided by the invention has the efficacies of clearing away heat and toxic materials, activating blood circulation to dissipate blood stasis, removing blood stasis, relieving pain, cooling blood, diminishing swelling, calming the liver, purging fire, being antipyretic, dispelling dampness, and the like; due to the synergistic effect of the efficacies, when the medicine is used for treating the liver cancer, the immune function of a body is improved and protected, and the metastasis and diffusion of cancer cells are obviously inhibited; the traditional Chinese medicine composition is few in side effects, low in price, and easy to operate.