The present invention provides a prophylactic and/or therapeutic agent and the like for ocular inflammatory diseases, comprising a pyrazolopyrimidine compound represented by the following 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 following 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,R4 represents a hydrogen atom and the like} or a pharmaceutically acceptable salt thereof, as an active ingredient.