To provide an aromatic ring compound having GPR40 agonist activity. Formula (I): [Each symbol in the formula is as described in the specification. Or a salt thereof has GPR40 agonist activity and is useful as a prophylactic / therapeutic agent for diabetes and the like.GPR40アゴニスト活性を有する芳香環化合物を提供すること。式(I):[式中の各記号は、明細書に記載の通りである。]で表される化合物またはその塩は、GPR40アゴニスト活性を有し、糖尿病などの予防・治療剤として有用である。