The invention discloses a traditional Chinese medicine composition for treating acute pyelonephritis. The composition is composed of the following raw materials in parts by weight: 12 to 15 parts of radix codonopsis, 10 to 12 parts of Chinese yam, 3 to 5 parts of rhizoma imperatae, 10 to 12 parts of wild chrysanthemum, 3 to 5 parts of cortex moutan, 2 to 4 parts of cornus officinalis, 1 to 3 parts of desmodium, 4 to 6 parts of fructus forsythiae, 3 to 5 parts of epimedium, 2 to 4 parts of dwarf flowering cherry seed, 1 to 3 parts of achyranthes root, 4 to 6 parts of bitter orange, 3 to 5 parts of poria cocos, 2 to 4 parts of gansui root, 3 to 4 parts of polygonum aviculare, 5 to 7 parts of flos farfarae, 1 to 3 parts of solidago, 10 to 12 parts of corn silk, 10 to 12 parts of white gourd peel, 2 to 4 parts of dandelion, 1 to 3 parts of strobilanthes tetraspermus, 2 to 4 parts of mallotus repandus, 1 to 3 parts of ainsliaea macroclinidioides hayata, and 2 to 4 parts of anhwei barberry root. The traditional Chinese medicine composition is prepared from pure traditional Chinese herbals, has a low cost, has the functions of dispersing wind to release the exterior, removing toxicity, treating stranguria, nourishing yin, tonifying kidney, and activating blood circulation to remove stasis, and has the clinically-proved advantages of good absorbing effect, prominent curative effect, no side or toxic effect, and no clinical adverse reactions. The cure rate of the composition is as high as 98.3%.