A pharmaceutical formulation for treating tinea of feet and hands is disclosed, which is composed of Fructus Gleditsia, Alumen and Borneol. Also disclosed is a cream preparative method of the pharmaceutical formulation, which comprises Fructus Gleditsia is decocted with water, and the decocted liquid is dried under decompression into powder, which is formulated to a cream together with the powders of Alumen and Borneol as well as the respective excipients.