6-Phenyl-Pyrazolopyrimidines of formula I ##STR1## wherein R.sup.1 is alkyl, alkenyl, alkynyl, alkadienyl or haloalkyl, cycloalkyl, bicycloalkyl, phenyl, naphthyl, or 5- or 6-membered heterocyclyl, containing one to four nitrogen atoms or one to three nitrogen atoms and one sulfur or oxygen atom, or 5- or 6-membered heteroaryl, containing one to four nitrogen atoms or one to three nitrogen atoms and one sulfur or oxygen atom, where these radicals may be unsubstituted or substituted as defined in the specification, Y is oxygen, sulfur, NR.sup.2 or a single bond; wherein R.sup.2 is defined in the specification; and R.sup.1 and R.sup.2 together with the interjacent nitrogen atom may represent a 5- or 6-membered heterocyclic ring, containing one to four nitrogen atoms or one to three nitrogen atoms and one sulfur or oxygen atom, which may be substituted by one or more R.sup.c radicals; m is 0 or an integer from 1 to 4; L each independently is halogen, nitro, alkyl, alkoxy, and X is halogen; processes and intermediates for preparing these compounds, compositions comprising them and their use for controlling phytopathogenic fungi are described.