To provide a fused heterocyclic compound represented by the following formula (1) having an excellent control effect on pests, wherein A1 represents NR5 or the like, A2 and A3 represent an nitrogen atom or the like, R1 represents a C1 to C6 chain hydrocarbon group or the like, R2 represents a C1 to C6 chain hydrocarbon group or the like, R3 and R4 are the same or different and represent a C1 to C6 chain hydrocarbon group or the like, n represents 0, 1 or 2, and G represents any of the following formulae, wherein Q represents an oxygen atom or the like, p represents 0 or 1, and R10 to R24 are the same or different and represent a C1 to C6 chain hydrocarbon group or the like.