The invention relates to a traditional Chinese medicine formula for treating chronic pyelonephritis, which comprises the following components: 20g radix dipsaci, fleece-flower root, matrimony vine, prepared rehmannia root, calamus, saltcake, pseudo-ginseng, Chinese prickly ash, pinellia ternate, poria, mulberry bark and Radix Astragali, 15g chestnut, donkey's penis and pangolin, 8g sea cucumber and ground beetle, and 5g mylabris. An administration method is characterized in that medicinal materials are added according to proportion for decoction for 30 minutes with a proper amount of water, one dosage with 150 milliliters is taken every day. The traditional Chinese medicine formula solves the problems of slow effectiveness and large side-effect of the traditional Chinese medicine formula in prior art, damage to liver, spleen and kidney is generated by long-term administration of the traditional Chinese medicine formula in prior art, endocrine disorder can be initiated due by the traditional Chinese medicine formula in prior art, the traditional Chinese medicine formula of the invention is used for treating chronic pyelonephritis.