It provides excellent acid secretion inhibitory action and compounds that show anti-ulcer action. Equation (I), ring a shows a saturated or unsaturated 5 or 6 membered ring group which may have 1 to 4 hetero atoms selected from nitrogen atoms, oxygen atoms and sulfur atoms other than carbon atoms as ring forming atoms, ring ring atom X.sub.2 represents a carbon atom or a nitrogen atom, and the ring shaped atom X3 represents carbon atoms, nitrogen atoms, oxygen atoms or sulfur atoms, and R1 represents an aryl group that may be substituted or a heteroaryl group that may be substituted R2 is an alkyl group substituted, substituted or aryl group substituted or substituted, or a heteroaryl group that is substituted, and R3 is a substituent on the ring forming atom other than x1, X2 and The ring a also has a substituent selected from a lower alkyl group, a halogen atom, a cyano group, and an oxo groupA compound represented by the formula or a salt pump inhibitor containing its salt or its prodrug.優れた酸分泌抑制作用を有し、抗潰瘍作用等を示す化合物の提供。式(I)[式中、環Aは、環構成原子として炭素原子以外に窒素原子、酸素原子および硫黄原子から選ばれるヘテロ原子を1~4個有していてもよい、飽和もしくは不飽和の5または6員環基を示し、環構成原子X1およびX2はそれぞれ炭素原子または窒素原子を示し、環構成原子X3は炭素原子、窒素原子、酸素原子または硫黄原子を示し、R1は置換されていてもよいアリール基または置換されていてもよいヘテロアリール基を示し、R2は置換されていてもよいアルキル基、置換されていてもよいアリール基または置換されていてもよいヘテロアリール基を示し、R3はX1、X2およびX3以外の環構成原子上の置換基であって、低級アルキル基で1または2個置換されていてもよいアミノメチル基を示し、環Aはさらに、低級アルキル基、ハロゲン原子、シアノ基およびオキソ基から選ばれる置換基を有していてもよい]で表される化合物またはその塩、またはそのプロドラッグを含有してなるプロトンポンプ阻害薬。