Provided is an agent for the prevention and/or treatment of a skin disease containing, as an active ingredient, a pyrazolopyrimidine derivative represented by the formula (I)(wherein each symbol is as defined in the specification), or a pharmacologically acceptable salt thereof, and the like.