The invention relates to a medicine for treating leukotrichia. The medicine has a medicine trade name of heiEsheng and is characterized by mainly consisting of thirty kinds of Chinese herbal medicine: chlorhexidine acetate, folium ginkgo, cortex lycii radicis, polygonum multiflorum, cacumen biotae, cinnamon, black bean, black sesame, walnut kernel, boxthorn fruit, salvia miltiorrhiza, astragalus mongholicus, eclipta, ligusticum wallichii, angelica sinensis, rhizoma zingiberis, cortex mori radicis, caulis polygoni multiflori, asarum, mulberry, date, tuckahoe, ginseng, rhizoma cyperi (refined), sandalwood, indigo naturalis, Chinese honey locust, red flower, cistanche, gallnut and lucid ganoderma. Compared with the prior art, the medicine has the beneficial effects that: 1) the medicine has the curative effect on the leukotrichia phenomenon caused by dankness, evil deficiency, blood and heat stagnation, qi stagnation, blood stasis and liver and kidney deficiency, and the blood supply insufficiency state of a blood vessel for supplying hair nutrition can be effectively improved; and 2) the medicine is an external preparation, the product is used once every 2 to 3 days, and the medicine can be used for the daily cleaning and maintenance of hair.