There is provided a compound having a capsaicin receptor VR1 inhibitory activity and useful as a therapeutic agent for various pains including inflammatory pain and neurogenic pain, migraine, cluster headache, bladder diseases including overactive bladder, and the like.