The invention belongs to the technical field of traditional Chinese medicines and in particular relates to a traditional Chinese medicine formula for treating gastrointestinal cancer. The traditional Chinese medicine formula is prepared from the following medicinal raw materials in parts by weight: 8-10 parts of radix pseudostellariae, 8-10 parts of mythic fungus, 8-10 parts of donkey hide gelatin, 8-10 parts of cortex albiziae, 5-8 parts of radix trichosanthis, 5-8 parts of prunella vulgaris, 3-5 parts of cassia seed, 2-4 parts of common lophantherum herb, 2-4 parts of baikal skullcap root, 2-4 parts of cortex Phellodendri, 2-4 parts of fructus forsythia, 2-4 parts of dandelion, 5-8 parts of herba violae, 3-5 parts of rhizoma smilacis glabrae, 3-5 parts of Chinese lobelia herb, 10-13 parts of pseudobulbus cremastrae seu pleiones, 5-8 parts of uniflower swisscentaury root, 3-5 parts of oldenlandia diffusa, 3-5 parts of dahurian patrinia herb, 3-5 parts of Chinese dwarf cherry seed, 2-3 parts of allium macrostemon, 5-8 parts of circium japonicum, 1-2 parts of large blister beetle, 3-5 parts of algae and 3-5 parts of kelp. By virtue of nursing of herbal treatment, the traditional Chinese medicine formula is capable of strengthening and consolidating body, promoting blood circulation, removing blood stasis, clearing away heat and toxic materials, activating blood to promote menstruation, eliminating swelling, removing stasis, and nourishing qi and yin and is fast in effect and good in curative effect of treating the gastrointestinal cancer.