Provided is an aromatic ring compound having a glucagon antagonistic action, which is useful for the prophylaxis or treatment of diabetes and the like. A compound represented by the formula (I):wherein each symbol is as defined in the DESCRIPTION, or a salt thereof has a superior glucagon antagonistic action, and is useful as a glucagon antagonist, a glucose production inhibitor or an agent for the prophylaxis or treatment of diabetes and the like.