Provided is a compound having a superior acid secretion suppressive action, which shows an antiulcer activity and the like.A compound represented by the formula (I) or a salt thereof:wherein ring A is as defined in claim 1;R1 and R2 are each a cyclic group optionally having substituent(s); R3 and R4 are each H or alkyl, or R3 and R4 form, together with the adjacent N, an nitrogen-containing heterocycle; and Y is a spacer.