A fused heterocyclic compound represented by formula (I) has an excellent pest control effect. In the formula, R1 represents a C1-C6 chain hydrocarbon group or the like R2, R3 and R4 may be the same or different, and each represents a C1-C6 chain hydrocarbon group or the like R5 represents a C1-C6 chain hydrocarbon group or the like G1, G2, G3, G4 and G5 may be the same or different, and each represents a nitrogen atom or the like Q represents an oxygen atom or a sulfur atom and n represents 0, 1 or 2.