The present invention relates to azolylmethyloxiranes of the general formula I in which A or B is phenyl which is substituted by one CN and optionally by one to three of the following substituents: halogen, NO2, amino, C1-C4-alkyl, C1-C4-alkoxy, C1-C4-haloalkyl, C1-C4-haloalkoxy, C1-C4-alkylamino, C1-C4-dialkylamino, thio or C1-C4-alkylthio, and the respective other substituent A or B is phenyl or 5-membered or 6-membered heteroaryl, these substituents optionally being substituted by one to three of the following substituents: halogen, CN, NO2, amino, C1-C4-alkyl, C1-C4-alkoxy, C1-C4-haloalkyl, C1-C4-haloalkoxy, C1-C4-alkylamino, C1-C4-dialkylamino, thio or C1-C4-alkylthio, and to the plant-compatible acid addition salts or metal salts thereof, to the use of the compounds of the formula I for controlling phytopathogenic fungi and to compositions comprising these compounds.