PROBLEM TO BE SOLVED: To provide a nitrogen-containing heterocyclic compound which surely exhibits effects and can be safely used, and to provide a pest control agent containing the compound as an active ingredient.SOLUTION: Provided is the nitrogen-containing heterocyclic compound represented by formula (I) [wherein, the dotted lines are each a single bond or a double bond, provided that one of the dotted lines is the single bond, and the other is the double bond A1 to A4 are C or N Y is a halogen atom, or the like (n) is an integer of 0 to 4 D is a methylene group or the like R0 is a haloalkyl group, or the like R1, R2 are each -C(=W)R13 (W is O or the like R13 is an alkyl group, a phenyl group, or the like), or the like Z is a phenyl group which may have a substituent, or the like] or its salt.COPYRIGHT: (C)2009,JPO&INPIT【課題】効果が確実で安全に使用できる含窒素複素環化合物、及びこの化合物を有効成分とする有害生物防除剤を提供する。【解決手段】式(I)で表される含窒素複素環化合物又はその塩。〔式中、点線は単結合又は二重結合を表す。但し、点線で表される二つの結合のうち、一方は単結合であり、他方は二重結合を表す。A1~A4は炭素原子又は窒素原子を表し、Yはハロゲン原子等を表し、nは0~4の整数を表し、Dはメチレン基等を表し、R0はハロアルキル基等を表し、R1、R2は-C(=W)R13(Wは酸素原子等を表し、R13はアルキル基、フェニル基等を表す。)で表される基等を表し、Zは置換基を有していてもよいフェニル基等を表す。〕【選択図】なし