The invention discloses a traditional Chinese medicine composition for treating liver cancer, which is prepared from the following raw materials in part by weight: 24-40 parts of angelica, 9-21 parts of Sichuan radix curcumae, 9-21 parts of radix bupleuri, 15-30 parts of albizia julibrissin, 15-30 parts of radix paeoniae alba, 20-40 parts of herba lycopi, 30-90 parts of radix astragali, 30-60 parts of radix pseudostellariae, 20-40 parts of roasted rhizoma atractylodis macrocephalae, 40-90 parts of semen coicis, 9-15 parts of pericarpium citri reticulatae, 9-15 parts of rhizoma pinelliae, 30-90 parts of rhizoma paridis, 30-90 parts of herba portulacae, 40-90 parts of rhizoma smilacis glabrae, 20-40 parts of herba solani nigri, 30-60 parts of nidus vespae, 30-60 parts of Chinese lobelia, 40-90 parts of spreading hedyotis, 7-18 parts of diverse wormwood herb, 15-40 parts of radix cynanchi paniculati, 30-50 parts of vinegar turtle, 30-60 parts of concha arcae, 15-40 parts of salvia chinensis, 9-30 parts of rhizoma curcumae, 20-40 parts of pharbitis seed, 9-15 parts of fructus aurantii, 9-15 parts of fructus aurantii immaturus, 9-18 parts of herba epimedii, 7-12 parts of radix rehmanniae recens and 6-12 parts of panax pseudoginseng powder (taken after mixed with water). The traditional Chinese medicine composition for treating liver cancer provided by the invention is strict in compatibility of medicines, reasonable in formula and skillful in medication; and according to the years of clinical use, the traditional Chinese medicine composition realizes an obvious curative effect on liver cancer and a satisfactory long-term curative effect, and is an ideal medicine for preventing and treating liver cancer.