[Problem] Provided is an agent for preventing or treating diseases accompanied by urinary pain.[Means for Solution] A pyridyl non-aromatic nitrogen-containing heterocyclic-1-carboxylate compound or a salt thereof was confirmed to have not only an action of increasing effective bladder capacity but also an analgesic action against bladder pain and testis pain, based on FAAH inhibitory action. Accordingly, the pyridyl non-aromatic nitrogen-containing heterocyclic-1-carboxylate compound or a salt thereof can be used for preventing or treating interstitial cystitis/bladder pain syndrome and/or chronic nonbacterial prostatitis/chronic pelvic pain syndrome.