This fused heterocyclic compound represented by formula (1) (in the formula, G 1 represents a nitrogen atom or the like, G 2 represents a nitrogen atom or the like, A 1 represents a nitrogen atom or the like, A 2 represents a nitrogen atom or the like, A 3 represents -NR 8 - or the like, A 4 represents a nitrogen atom or the like, A 5 represents a nitrogen atom or the like, R 1 represents a C1-C6 chain hydrocarbon group or the like optionally having one or more atoms or groups selected from a group X, R 2 and R 3 are the same or different and represent a C1-C6 chain hydrocarbon group or the like optionally having one or more atoms or groups selected from the group X, R 8 represents a C1-C6 chain hydrocarbon group or the like optionally having one or more atoms or groups selected from a group W, and n represents 0, 1 or 2.), or an N-oxide thereof, is very effective for pest control.