Formula (1) [In the formula, G1 represents a nitrogen atom or the like, G2 represents a nitrogen atom or the like, A1 represents a nitrogen atom or the like, A2 represents a nitrogen atom or the like, A3 represents a nitrogen atom or the like, and A4 represents Represents a nitrogen atom, A5 represents a nitrogen atom, R1 represents a C1-C6 chain hydrocarbon group optionally having one or more atoms or groups selected from group X, R2, R3 And R4 are the same or different and each represents a C1-C6 chain hydrocarbon group which may have one or more atoms or groups selected from group X, R5 and R6 are the same or different, and group X Represents a C1-C6 chain hydrocarbon group or the like which may have one or more atoms or groups selected from the above, and n represents 0, 1 or 2. ] The condensed heterocyclic compound shown by this, or its N-oxide has the outstanding pest control effect.式(1)〔式中、G1は窒素原子等を表し、G2は窒素原子等を表し、A1は窒素原子等を表し、A2は窒素原子等を表し、A3は窒素原子等を表し、A4は窒素原子等を表し、A5は窒素原子等を表し、R1は群Xより選ばれる1個以上の原子若しくは基を有していてもよいC1-C6鎖式炭化水素基等を表し、R2、R3及びR4は同一又は相異なり、群Xより選ばれる1個以上の原子若しくは基を有していてもよいC1-C6鎖式炭化水素基等を表し、R5及びR6は同一又は相異なり、群Xより選ばれる1個以上の原子若しくは基を有していてもよいC1-C6鎖式炭化水素基等を表し、nは0、1又は2を表す。〕で示される縮合複素環化合物、又はそのN-オキシドは優れた有害生物防除効果を有する。