The invention provides a method for prophylaxis and/or treatment of an ocular inflammatory disease comprising administering an effective amount of a pyrazolopyrimidine compound represented by formula (I), wherein R1 represents —NR1aR1b (wherein R1a and R1b are the same or different and each represents a hydrogen atom and the like), and the like, R2 represents the formula (R2−1) [wherein k and m represent each an integer of 0-2, n represents an integer of 0-2, L represents a single bond and the like, R5 represents a halogen and the like, R6 represents aryl and the like, X represents —CR8 (wherein R8 represents a hydrogen atom and the like), and the like, R7 represents a hydrogen atom, and the like, and the like, R3 represents —SO2R13 (wherein R13 represents lower alkoxy and the like), and the like, and R4 represents a hydrogen atom and the like, or a pharmaceutically acceptable salt thereof.