An object of the present invention is to provide a pharmaceutical composition which has an excellent inhibitory effect on RORt and is useful as a therapeutic agent for psoriasis, inflammatory bowel disease, ulcerative colitis, Crohns disease, rheumatoid arthritis, multiple sclerosis, uveitis, asthma, ankylosing spondylitis , Systemic lupus erythematosus, chronic obstructive pulmonary disease and the like. In the present invention,Formula (I): [Each symbol in the formula is as described in the specification. Or a salt thereof, which has an inhibitory effect on RORt and is useful as an agent for treating psoriasis, inflammatory bowel disease, ulcerative colitis, Crohns disease, rheumatoid arthritis, multiple sclerosis, uveitis, asthma, ankylosis A compound useful as a prophylactic or therapeutic agent for sexual spondylitis, systemic lupus erythematosus, chronic obstructive pulmonary disease and the like.本発明の課題は、優れたRORγtの阻害作用を有し、乾癬、炎症性腸疾患、潰瘍性大腸炎、クローン病、リウマチ性関節炎、多発性硬化症、ぶどう膜炎、喘息、強直性脊椎炎、全身性エリテマトーデス、慢性閉塞性肺疾患等の予防または治療剤として有用な化合物を提供することである。本発明は、式(I):[式中の各記号は、明細書に記載の通りである。]で表される化合物またはその塩に関し、RORγtの阻害作用を有し、乾癬、炎症性腸疾患、潰瘍性大腸炎、クローン病、リウマチ性関節炎、多発性硬化症、ぶどう膜炎、喘息、強直性脊椎炎、全身性エリテマトーデス、慢性閉塞性肺疾患等の予防または治療剤として有用な化合物に関する。