The invention relates to the technical field of medicament, and provides a novel azole antifungal compound and salts thereof, a preparation method and application thereof. The compound has a chemical structure formula as the right, wherein, X is hydroxide radical; Ar is 2,4-difluorophenyl; R1 is hydrogen or a linear chain with 1 to 6 carbon atoms or low alkyl group with unsaturated or saturated branched chain; and R2 is selected from hydrogen, alkyl, halogen, cyano-group, nitryl and alkoxyl, can be positioned on ortho, meta, para positions of a benzene ring, and can be mono-substituted or multi-substituted. Salts of the compound can be hydrochloride, nitrate, hydrobromide or methane sulfonate. Pharmacological tests prove that the compound has strong antifungal activity, has the advantages of high efficiency, low toxicity, wide antifungal spectrum and the like compared with the prior antifungal medicines applied in clinic, and can be used for preparing antifungal medicines.