Its salts and new nitrogen-containing heterocyclic compounds, as well as the present invention provides containing as an active ingredient, at least one of these, the agricultural and horticultural fungicide that can be used safely effect is reliable. The nitrogen-containing heterocyclic compound of the present invention, (I) [wherein, respectively and independently, R 1 ~R 7 represents a hydrogen atom, a halogen atom, an alkyl group C1~20 formula. X represents an organic halogen atom, a nitro group, an amino group having an unsubstituted or substituted, or a hydroxyl group. n is an integer of 0 to 4. Z represents an oxygen atom, a sulfur atom, the formula shows (R 10 represents an alkyl group.) 10 or the like to NR. It is represented by]. [Formula (I)]本発明は、新規含窒素ヘテロ環化合物及びその塩、並びにこれらの少なくとも1種を有効成分として含有する、効果が確実で安全に使用できる農園芸用殺菌剤を提供する。本発明の含窒素ヘテロ環化合物は、下記式(I)[式中、R1~R7は、夫々独立して、水素原子、ハロゲン原子、C1~20アルキル基等を示す。Xは、ハロゲン原子、ニトロ基、無置換若しくは置換基を有するアミノ基、水酸基、又は有機基を示す。nは、0~4のいずれかの整数を示す。Zは、酸素原子、硫黄原子、式:NR10等(R10はアルキル基等を示す。)を示す。]で表される。[式(I)]