The invention discloses a traditional Chinese medicine for treating bedsores and a preparation method thereof, and belongs to the technical field of traditional Chinese medicines. The traditional Chinese medicine is prepared from the following raw materials: astragalus membranaceus, codonopsis pilosula, Chinese yam, white atractylodes rhizome, wolfberries, dragon bone, frankincense, myrrh, tribulus terrestris, radix sophorae flavescentis, fructus kochiae, earthworms, loranthus parasiticus, ramulus mori, wormwood, angelica sinensis, peach kernels, safflower, pinellia ternata, radix paeoniae alba, salvia miltiorrhiza, radix stemonae, cortex dictamni, pepper, herba violae, coptis chinensis, golden cypress, polygonum cuspidatum, oriental wormwood, borneol, ginseng, natrix tigrina and liquorice. The various medicines of the traditional Chinese medicine disclosed by the invention have a synergistic effect, and have the functions of clearing away heat and toxic materials, tonifying qi and dredging collaterals, relieving itching, removing dampness-heat, and removing necrotic tissues and promoting granulation; the traditional Chinese medicine can promote organism regulation function and speed up wound union after being taken, has an analgesic effect and reduces the pains of patients during treatment processes, and can play the role of treating both symptoms and root causes in treatment of bedsores.