This invention provides a compound of the formula (I). These compounds are useful for the treatment of disease conditions caused by overactivation of the VR1 receptor such as pain, or the like in mammal. This invention also provides a pharmaceutical composition comprising the above compound.