[Problem] To provide a compound that has PDE9-inhibiting activity and is useful as an active ingredient of an agent for treating and/or preventing overactive bladder, dysuria, bladder and urinary tract disease, and the like. [Solution] The inventors of the present invention studied compounds that have PDE9-inhibiting activity and are useful as active ingredients of agents for treating and/or preventing overactive bladder, dysuria, bladder and urinary tract disease, and the like, and perfected the present invention upon confirming that pyrazoloquinoline compounds have PDE9-inhibiting activity. The pyrazoloquinoline compound of the present invention has PDE9-inhibiting activity and can be used as an agent for preventing and/or treating overactive bladder, dysuria, bladder and urinary tract disease, and the like.