The invention discloses a medicinal formula for treating barbiers or tinea pedis, which comprises 800 grams of lightyellow sophora root, 600 grams of phellodendron amurense, 800 grams of lemonfragrant angelica root, 1,200 grams of Chinese gall, 600 grams of safflower, 2,000 grams of sulfur dust, 1,800 grams of dried alum, 300 grams of rivanol, 6,000 grams of salicylic acid, 10,000 grams of benzoic acid and 20,000 milliliters of alcohol. A preparation method comprises the following steps of: A, impregnating the lightyellow sophora root, the phellodendron amurense, the lemonfragrant angelica root, the Chinese gall and the safflower in the 95 percent alcohol for 15 days and performing filtration to obtain solution A; and B, adding the dried alum, the sulfur dust, the rivanol, the salicylic acid and the benzoic acid which are weighed into the solution A for uniform mixing, and dividing the mixed solution into 100 parts for bottling or bagging. The medicinal formula can remarkably cure the diseases of barbiers, foot odor, tinea pedis and the like without remarkable adverse reaction and toxic or side effect and with the efficiency of 100 percent and the curative ratio of 98 percent, adopts the combination of Chinese medicaments and western medicaments, has little irritation to skin and high curative effect, can cure chronic and stubborn diseases from which patients suffer for a plurality of years after being taken without relapse, and has the characteristics of simple and rational preparation, readily available medicament sources and high popularization value.