The present invention relates to aryl substituted carboxamide derivatives of formula (I) or a pharmaceutically acceptable salt thereof, which have blocking activities of T-type calcium channels or voltage gated sodium channels as the tetrodotoxin-sensitive (TTX-S) blockers such as Nav1.3 and Nav1.7, and which are useful in the treatment or prevention of disorders and diseases in which T-type calcium channels or voltage gated sodium channels are involved. The invention also relates to pharmaceutical compositions comprising these compounds and the use of these compounds and compositions in the prevention or treatment of such diseases in which T-type calcium channels or voltage gated sodium channels are involved.