5-Phenylpyrimidines of the formula I ##STR00001## in which the
substituents and the index are as defined below: R.sup.1,R.sup.2 are
hydrogen, alkyl, haloalkyl, cycloalkyl, halocycloalkyl, alkenyl,
haloalkenyl, alkynyl or haloalkynyl, and R.sup.1 and R.sup.2 together
with the nitrogen atom to which they are attached may also form a
saturated or unsaturated ring which may be interrupted by an ether, thio,
sulfoxyl or sulfonyl group and may be substituted by one to four groups
R.sup.a and/or R.sup.b; R.sup.3 is hydrogen, halogen, cyano, alkyl,
haloalkyl, alkoxy, haloalkoxy or alkenyloxy; R.sup.4 is hydrogen,
halogen, cyano, hydroxyl, mercapto, azido, alkyl, alkenyl, alkynyl,
haloalkyl, alkoxy, alkenyloxy, alkynyloxy, haloalkoxy, alkylthio,
alkenylthio, alkynylthio, haloalkylthio, --ON.dbd.CR.sup.aR.sup.b,
--CR.sup.c.dbd.NOR.sup.a, --NR.sup.cN.dbd.CR.sup.aR.sup.b,
--NR.sup.aR.sup.b, --NR.sup.cNR.sup.aR.sup.b, --NOR.sup.a,
--NR.sup.cC(.dbd.NR.sup.c')NR.sup.aR.sup.b,
--NR.sup.cC(.dbd.O)NR.sup.aR.sup.b, --NR.sup.aC(.dbd.O)R.sup.c,
--NR.sup.aC(.dbd.NOR.sup.c)R.sup.c', --OC(.dbd.O)R.sup.c,
--C(.dbd.NOR.sup.c)NR.sup.aR.sup.b, --CR.sup.c(.dbd.NNR.sup.aR.sup.b),
--C (.dbd.O)NR.sup.aR.sup.b or --C(.dbd.O)R.sup.c; in which R.sup.a,
R.sup.b and R.sup.c are as defined in the description; X is halogen,
alkyl, alkoxy or haloalkyl; and m is an integer from 1 to 5 ; processes
for preparing these compounds, compositions comprising them and their use
for controlling harmful fungi are described.