The present invention provides a fused heterocyclic derivative having a potent kinase inhibitory activity and use thereof.A compound represented by the formula (I):wherein each symbol is as defined in the specification, except a particular compound, or a salt thereof, and a pharmaceutical agent containing the compound or a prodrug thereof, which is a kinase (VEGFR, VEGFR2, PDGFR, Raf) inhibitor, an angiogenesis inhibitor, an agent for the prophylaxis or treatment of cancer, a cancer growth inhibitor or a cancer metastasis suppressor.