PROVIDED IS AN AGRICULTURAL FUNGICIDE THAT CONTAINS AT LEAST ONE SELECTED FROM THE GROUP CONSISTING OF A NOVEL NITROGEN-CONTAINING HETEROCYCLIC COMPOUND REPRESENTED BY FORMULA (I), A SALT THEREOF, OR AN N-OXIDE COMPOUND THEREOF. IN FORMULA (I), R REPRESENTS A GROUP REPRESENTED BY CR1R2R3 OR A CYANO GROUP. R1 TO R3 EACH INDEPENDENTLY REPRESENTS A HYDROGEN ATOM, AN UNSUBSTITUTED OR SUBSTITUTED C1-8 ALKYL GROUP, AN UNSUBSTITUTED OR SUBSTITUTED HYDROXYL GROUP, OR THE LIKE. R4 OR R5 REPRESENTS A HALOGENO GROUP OR THE LIKE. Y OR Z REPRESENTS A CARBON ATOM OR THE LIKE, AND A OR D REPRESENTS A BENZENE RING OR THE LIKE. X REPRESENTS AN OXYGEN ATOM OR A NITROGEN ATOM OR THE LIKE.