Se proporciona un fungicida para el uso en agricultura y jardinería que tiene una buena eficiencia y seguridad, y un compuesto heterocíclico conteniendo nitrógeno o una sal del mismo que es útil como principio activo de un fungicida para el uso en agricultura y jardinería. Reivindicación 1: Un compuesto heterocíclico conteniendo nitrógeno que presenta la fórmula (1) o una sal del mismo. (En la fórmula (1), R representa OR¹, NR¹R², SR¹, S(=O)R³, SO₂R³, S(=O)(=NR⁴)R⁵, N=S(=O)R⁴R⁵ o nitro; R¹ representa un átomo de hidrógeno, alquilo C₁₋₈ sin sustituir o sustituido, alquenilo C₂₋₈ sin sustituir o sustituido, alquinilo C₂₋₈ sin sustituir o sustituido, cicloalquilo C₃₋₈ sin sustituir o sustituido, cicloalquenilo C₄₋₈ sin sustituir o sustituido, arilo C₆₋₁₀ sin sustituir o sustituido, heterociclilo sin sustituir o sustituido, acilo C₁₋₈ sin sustituir o sustituido, carboxilo sin sustituir o sustituido, carbamoilo sin sustituir o sustituido, sulfonilo sustituido, o amino sin sustituir o sustituido. R² representa un átomo de hidrógeno, alquilo C₁₋₈ sin sustituir o sustituido, alquenilo C₂₋₈ sin sustituir o sustituido, alquinilo C₂₋₈ sin sustituir o sustituido, cicloalquilo C₃₋₈ sin sustituir o sustituido, cicloalquenilo C₄₋₈ sin sustituir o sustituido, arilo C₆₋₁₀ sin sustituir o sustituido, heterociclilo sin sustituir o sustituido, acilo C₁₋₈ sin sustituir o sustituido, carboxilo sin sustituir o sustituido, carbamoilo sin sustituir o sustituido, sulfonilo sustituido, hidroxi sin sustituir o sustituido, o amino sin sustituir o sustituido. R³ representa alquilo C₁₋₈ sin sustituir o sustituido, alquenilo C₂₋₈ sin sustituir o sustituido, alquinilo C₂₋₈ sin sustituir o sustituido, cicloalquilo C₃₋₈ sin sustituir o sustituido, cicloalquenilo C₄₋₈ sin sustituir o sustituido, arilo C₆₋₁₀ sin sustituir o sustituido, heterociclilo sin sustituir o sustituido, mercapto sin sustituir o sustituido, hidroxi sin sustituir o sustituido, o amino sin sustituir o sustituido. R⁴ y R⁵ representan, independientemente entre sí, alquilo C₁₋₈ sin sustituir o sustituido, alquenilo C₂₋₈ sin sustituir o sustituido, alquinilo C₂₋₈ sin sustituir o sustituido, cicloalquilo C₃₋₈ sin sustituir o sustituido, cicloalquenilo C₄₋₈ sin sustituir o sustituido, arilo C₆₋₁₀ sin sustituir o sustituido, o heterociclilo sin sustituir o sustituido. En el grupo NR¹R², el conjunto de R¹ y R² puede formar cíclilo de 3 - 8 miembros sin sustituir o sustituido, =CRᵃRᵇ o =NRᶜ. Rᵃ y Rᵇ representan, independientemente entre sí, un átomo de hidrógeno, alquilo C₁₋₈ sin sustituir o sustituido, alquenilo C₂₋₈ sin sustituir o sustituido, alquinilo C₂₋₈ sin sustituir o sustituido, cicloalquilo C₃₋₈ sin sustituir o sustituido, cicloalquenilo C₄₋₈ sin sustituir o sustituido, arilo C₆₋₁₀ sin sustituir o sustituido, heterociclilo sin sustituir o sustituido, acilo C₁₋₈ sin sustituir o sustituido, carboxilo sin sustituir o sustituido, carbamoilo sin sustituir o sustituido, sulfonilo sustituido, mercapto sin sustituir o sustituido, hidroxilo sin sustituir o sustituido, o amino sin sustituir o sustituido. Rᶜ representa hidroxilo sin sustituir o sustituido, o alquilo C₁₋₈ sin sustituir o sustituido. En el grupo N=S(=O)R⁴R⁵, el conjunto de R⁴ y R⁵ puede formar cíclilo de 5 - 8 miembros sin sustituir o sustituido. X¹ representa, independientemente entre sí, alquilo C₁₋₈ sin sustituir o sustituido, alquenilo C₂₋₈ sin sustituir o sustituido, alquinilo C₂₋₈ sin sustituir o sustituido, cicloalquilo C₃₋₈ sin sustituir o sustituido, cicloalquenilo C₄₋₈ sin sustituir o sustituido, arilo C₆₋₁₀ sin sustituir o sustituido, heterociclilo sin sustituir o sustituido, acilo C₁₋₈ sin sustituir o sustituido, (1-imino) alquilo C₁₋₈ sin sustituir o sustituido, carboxilo sin sustituir o sustituido, carbamoilo sin sustituir o sustituido, hidroxilo sin sustituir o sustituido, amino sin sustituir o sustituido, mercapto sin sustituir o sustituido, sulfonilo sustituido, halógeno, ciano o nitro. m representa el número de X¹ y un número entero de 0 a 5. B representa un átomo de carbono o de nitrógeno. D representa hidrocarburo cíclico de 5 - 7 miembros sin sustituir o sustituido con X¹ o heterociclilo de 5 - 7 miembros sin sustituir o sustituido con X¹. X² representa, independientemente entre sí, alquilo C₁₋₈ sin sustituir o sustituido, alquenilo C₂₋₈ sin sustituir o sustituido, alquinilo C₂₋₈ sin sustituir o sustituido, cicloalquilo C₃₋₈ sin sustituir o sustituido, cicloalquenilo C₄₋₈ sin sustituir o sustituido, arilo C₆₋₁₀ sin sustituir o sustituido, heterociclilo sin sustituir o sustituido, acilo C₁₋₈ sin sustituir o sustituido, (1-imino) alquilo C₁₋₈ sin sustituir o sustituido, carboxilo sin sustituir o sustituido, carbamoilo sin sustituir o sustituido, hidroxilo sin sustituir o sustituido, amino sin sustituir o sustituido, mercapto sin sustituir o sustituido, sulfonilo sustituido, halógeno, ciano o nitro. n representa el número de X² y un número entero de 0 a 3. El conjunto de uno de X² y R puede formar cíclilo de 5 - 8 miembros sin sustituir o sustituido. E representa hidrocarburo cíclico de 5 - 7 miembros sin sustituir o sustituido con X² o heterociclilo de 5 - 7 miembros sin sustituir o sustituido con X². X representa un átomo de oxígeno o de nitrógeno, o un átomo de nitrógeno sustituido con alquilo C₁₋₈).A fungicide is provided for use in agriculture and gardening that has good efficiency and safety, and a heterocyclic compound containing nitrogen or a salt thereof that is useful as an active principle of a fungicide for use in agriculture and gardening. Claim 1: A nitrogen-containing heterocyclic compound having the formula (1) or a salt thereof. (In formula (1), R represents OR¹, NR¹R², SR¹, S (= O) R³, SO₂R³, S (= O) (= NR⁴) R⁵, N = S (= O) R⁴R⁵ or nitro; R¹ represents a hydrogen atom, unsubstituted or substituted C₁₋₈ alkyl, unsubstituted or substituted Cque alkenyl, unsubstituted or substituted C₂₋₈ alkynyl, unsubstituted or substituted C₃₋₈ cycloalkyl, unsubstituted or substituted C₄₋₈ cycloalkenyl, aryl Unsubstituted or substituted C₆₋₁₀, unsubstituted or substituted heterocyclyl, unsubstituted or substituted C₁₋₈ acyl, unsubstituted or substituted carboxyl, unsubstituted or substituted carbamoyl, substituted sulfonyl, or unsubstituted or substituted amino.R² represents an atom of hydrogen, unsubstituted or substituted C₁₋₈ alkyl, unsubstituted or substituted C alkenyl, unsubstituted or substituted Cin alkynyl, unsubstituted or substituted C₃₋₈ cycloalkyl, unsubstituted or substituted C ciclo cycloalkenyl, C₆₋ aryl ₁₀ no substitute tuir or substituted, unsubstituted or substituted heterocyclyl, unsubstituted or substituted C₁₋₈ acyl, unsubstituted or substituted carboxyl, unsubstituted or substituted carbamoyl, substituted sulfonyl, unsubstituted or substituted hydroxy, or unsubstituted or substituted amino. R³ represents unsubstituted or substituted C₁₋₈ alkyl, unsubstituted or substituted C alkenyl, unsubstituted or substituted C sustitu alkynyl, unsubstituted or substituted C₃₋₈ cycloalkyl, unsubstituted or substituted C₄₋₈ cycloalkenyl, C₆₋ aryl ₁₀ unsubstituted or substituted, unsubstituted or substituted heterocyclyl, unsubstituted or substituted mercapto, unsubstituted or substituted hydroxy, or unsubstituted or substituted amino. R⁴ and R⁵ represent, independently of each other, unsubstituted or substituted C₁₋₈ alkyl, unsubstituted or substituted Cque alkenyl, unsubstituted or substituted Cin alkynyl, unsubstituted or substituted C₃₋₈ cycloalkyl, C₄₋₈ cycloalkenyl without substituted or substituted, unsubstituted or substituted C₆₋₁₀ aryl, or unsubstituted or substituted heterocyclyl. In the NR¹R² group, the set of R¹ and R² can form 3-8 unsubstituted or substituted cyclyl, = CRᵃRᵇ or = NRᶜ. Rᵃ and Rᵇ represent, independently of each other, a hydrogen atom, unsubstituted or substituted C₁₋₈ alkyl, unsubstituted or substituted Cque alkenyl, unsubstituted or substituted Cin alkynyl, unsubstituted or substituted C ciclo cycloalkyl, C sustituir unsubstituted or substituted cycloalkenyl, unsubstituted or substituted Cilo aryl, unsubstituted or substituted heterocyclyl, unsubstituted or substituted C₁₋₈ acyl, unsubstituted or substituted carboxyl, unsubstituted or substituted carbamoyl, substituted sulfonyl, mercapto without substituted or substituted, unsubstituted or substituted hydroxyl, or unsubstituted or substituted amino. Rᶜ represents unsubstituted or substituted hydroxyl, or unsubstituted or substituted C₁₋₈ alkyl. In the group N = S (= O) R⁴R⁵, the set of R⁴ and R⁵ can form 5-8 membered cyclyl unsubstituted or substituted. X¹ represents, independently of each other, unsubstituted or substituted C₁₋₈ alkyl, unsubstituted or substituted Cque alkenyl, unsubstituted or substituted Cin alkynyl, unsubstituted or substituted C₃₋₈ cycloalkyl, unsubstituted or substituted Cal cycloalkenyl substituted, unsubstituted or substituted C₆₋₁₀ aryl, unsubstituted or substituted heterocyclyl, unsubstituted or substituted C₁₋₈ acyl, (1-imino) unsubstituted or substituted C₁₋₈ alkyl, unsubstituted or substituted carboxyl, unsubstituted carbamoyl or substituted, unsubstituted or substituted hydroxyl, unsubstituted or substituted amino, unsubstituted or substituted mercapto, substituted sulfonyl, halogen, cyano or nitro. m represents the number of X¹ and an integer from 0 to 5. B represents a carbon or nitrogen atom. D represents 5-7 membered cyclic hydrocarbon unsubstituted or substituted with X¹ or 5-7 membered heterocyclyl unsubstituted or substituted with X¹. X² represents, independently of each other, unsubstituted or substituted C₁₋₈ alkyl, unsubstituted or substituted Cque alkenyl, unsubstituted or substituted C₂₋₈ alkynyl, unsubstituted or substituted C₃₋₈ cycloalkyl, unsubstituted or substituted C₄₋₈ cycloalkenyl substituted, unsubstituted or substituted C₆₋₁₀ aryl, unsubstituted or substituted heterocyclyl, unsubstituted or substituted C₁₋₈ acyl, (1-imino) unsubstituted or substituted C₁₋₈ alkyl, unsubstituted or substituted carboxyl, unsubstituted carbamoyl or substituted, unsubstituted or substituted hydroxyl, unsubstituted or substituted amino, unsubstituted or substituted mercapto, substituted sulfonyl, halogen, cyano or nitro. n represents the number of X² and an integer from 0 to 3. The set of one of X² and R can form 5-8 membered cyclyl unsubstituted or substituted. E represents 5-7 membered cyclic hydrocarbon unsubstituted or substituted with X² or 5-7 membered heterocyclyl unsubstituted or substituted with X². X represents an oxygen or nitrogen atom, or a nitrogen atom substituted with C₁₋₈ alkyl).