The present Invention provides a New Heterocyclic Compound containing Nitrogen, a Salt thereof, an n-oxide thereof, and a Fungicide for use in Agriculture and Gardening which contains as the active ingredient at least one selected from these compounds. In the formula (i), R represents a cr1r2r3 or cyano Group.R1 - R3 independently represent a hydrogen Atom, alkyl C1 - 8 without replacing or replaced without replacing or hydroxyl substituted or R4 or R5 represents Halogen or etc. etc. and Z represents a carbon Atom or etc., and represents benzene or d or D x represents an Atom. NITROGEN and Oxygen, or space for the formula.La presente invención se proporciona un compuesto heterocíclico nuevo conteniendo nitrógeno, una sal del mismo y un N-óxido del mismo, y una fungicida para el uso en agricultura y jardinería que contiene como principio activo al menos uno seleccionado de estos compuestos. En la fórmula (I), R representa un grupo CR1R2R3 o ciano. R1-R3 representan, independientemente entre sí, un átomo de hidrógeno, alquilo C1-8 sin sustituir o sustituido, hidroxilo sin sustituir o sustituido o etc. R4 o R5 representa halógeno o etc. Y o Z representa un átomo de carbono o etc., y A o D representa benceno o etc. X representa un átomo de oxígeno, de nitrógeno o etc. ESPACIO PARA LA FÓRMULA