The invention discloses a medicine for treating perianal and perirectal abscesses with syndromes of yin deficiency with lingering pathogens, wherein the medicine is prepared from the following crude drugs: boschniakia rossica, common thunia herb, convallaria majalis, genista, astilbe chinensis, aspidopterys glabriuscula, radix scirpi triangulate, ardisiamamillata, cydonia oblonga, latouchea fokienensis, large angiopteris rhizome, waltheria americana, ampelopsis brevipedunculata, cortex erythrinae, radix wikstroemiae indicae, climbing fig receptacle, herba lysimachiae, herba cichorii, ramulus buxi sinicae, incarvillea sinensis, folium craibiodendri yunnanensis, tangerine pith, usnea diffracta vain, wedelia urticifolia, radix meconopsis chelidonifolia, pterula umbrinella herb, ginseng flower, herba junci setchuensis and rhizoma corydalis decumbentis. The medicine has the beneficial effects that the medicine provided by the invention is used for treating the perianal and perirectal abscesses with the syndromes of yin deficiency with the lingering pathogens, has functions of nourishing yin, clearing heat, dispelling dampness, detoxifying, deswelling, relieving pain, regulating menstruation, clearing collaterals, tonifying qi and promoting blood circulation, by scientifically conditioning a basal body, is good in effect, quick in curative effect, is not liable to recurrence, and moreover, has no toxic or side effect.