Disclosed is a novel compound having Syk and/or Abl inhibitory activities, which is useful for prevention/treatment of allergic diseases, autoimmune diseases, arthritides and cancers. Specifically disclosed is a pyrazolopyrimidine compound represented by the formula [I] or [III] below, a tautomer thereof, a stereoisomer thereof, a pharmaceutically acceptable salt thereof, or a solvent of any of them.