The present invention relates to
wherein each symbol is as defined in the specification. The compound has a superior mineralocorticoid receptor antagonistic action and is useful as an agent for the prophylaxis or treatment of a disease or condition mediated by the mineralocorticoid receptor activation.