PROBLEM TO BE SOLVED: To provide a compound having excellent retinoic acid receptor related orphan receptor γt inhibition effect and useful as a therapeutic agent for psoriasis or the like.SOLUTION: There is provided a compound represented by the general formula (I) or a pharmaceutically acceptable salt thereof. (I), where a ring A is a pyrrole ring, an imidazole ring or a pyrazole ring, a ring B is a substituted/unsubstituted benzene ring, a cyclohexadiene ring, a cyclopentene ring, a cyclohexene ring or the like, R1 is H, a halogen atom or the like, R2 is H, a halogen atom, a C1-C6 alkyl group or the like, a group represented by the formula =Q-T- is a group represented by the formula =CH-CH=CH- or the like, Z is a group represented by the formula =CH- or the like, a group represented by the formula -U-V(CO2H)-W- is a group represented by the formula -CH=CH-C(CO2H)=CH-.SELECTED DRAWING: NoneCOPYRIGHT: (C)2016,JPO&INPIT【課題】優れたレチノイン酸受容体関連オーファン受容体γt阻害作用を有し、乾癬等の治療薬として有用な化合物の提供。【解決手段】一般式(I)で表される化合物又はその薬理上許容される塩。[環Aはピロール環、イミダゾール環又はピラゾール環;環Bは置換/非置換のベンゼン環、シクロヘキサジエン環、シクロペンテン環、シクロヘキセン環等;R1はH、ハロゲン原子等;R2はH、ハロゲン原子、C1-C6アルキル基等;式=Q-T-で表される基は式=CH-CH=CH-で表される基等;Zは式=CH-で表される基等;式-U-V(CO2H)-W-で表される基は、式-CH=CH-C(CO2H)=CH-で表される基等]【選択図】なし