The invention relates to a traditional Chinese medicine composition for deodorizing and treating dermatophytosis, which is prepared from tea leaves, pepper, garden burnet, cedar leaves, rhizoma polygonati, uniflower swisscentaury roots, white vinegar, Bexarotene, bitter, tuckahoe, alum, salt, tobacco leaves, pumpkin roots and common cnidium fruits. Natural traditional Chinese medicines are taken as raw materials, dialectical compatibility is performed, the dermatophytosis and foot odor are treated by utilizing the comprehensive action of the medicines, the medicine effect is good, meanwhile, the traditional Chinese medicine composition is low in cost and convenient to produce, socks prepared through high-temperature fumigation of the medicine composition are used for treating beriberi and preventing foot odor, the medicine odor can act on the feet for a long time through the socks, and therefore the beriberi curing period is shortened, the beriberi curing period is short, beriberi curing speed is high, meanwhile, frequent smearing of ointment is not needed, only the socks need to be worn normally, the socks are convenient to use, the feet do not need to be touched by hands, and the socks are more sanitary.