Provided are heterocyclylpyri(mi)dinylpyrazole derivative compounds of the formula (I), wherein the variables are as defined in the specification. Examples of the compounds include 4-[2-(4-fluorophenyl)-5,6-dihydro-4H-pyrrolo[1,2-b]pyrazol-3-yl]pyridin-2-amine and N-{ 4-[2-(4-fluorophenyl)-5,6-dihydro-4H-pyrrolo[1,2-b]pyrazol-3-yl]pyridin-2-yl} -N-propionylcyclopropanecarboxamide. The compounds can be used for controlling phytopathogenic fungi and mycotoxins.