The invention discloses a medicine for treating cancer. The common rabdosia leaf cancer-control anticancer formula one is prepared by the following steps: mixing the raw materials of common rabdosia leaf, red ginseng, mulberry, medlar, astragalus root, bunge corydalis herb, honeysuckle and ligusticum chuanxiong hort according to a reasonable ratio, adding a proper amount of water, decocting, drying, grinding into fine powder, and then compounding with cordyceps powder, chitin powder, genistein powder which are ground into fine powder; aloe mineral composite anticancer formula two is prepared by the following steps: grinding aloe crystalline powder with pollen, royal jelly powder, fructooligosaccharide, magnesium lactate, zinc lactate, tricalcium phosphate, sodium selenite and chromium trichloride into fine powder according to proportion, and then mixing with vitamin A, B1, B2, B3, B6, B9, B12, E and K; sea-buckthorn nutritional polysaccharide anticancer formula three is prepared by the following steps: grinding sea-buckthorn powder, inulin and black tea powder into fine powder according to proportion, and then mixing with fructooligosaccharide, oligo-isomaltose, mannite, vitamin C and sucralose; and high fiber detoxification anti-cancer formula four is prepared by the following steps: mixing natural fiber with fructooligosaccharide, isomalt, strawberry powder, sea-buckthorn powder and protein hydrolysate. The medicine is not only suitable for treating various cancer patients at each stage, but also has good healing effect, short period of treatment, no toxic or side effect, simple administration method, rich medicine sources and low cost, and is efficient and safe.