To provide a compound having a delta-5-desaturase inhibitory action, useful for the prevention and treatment of diseases such as arteriosclerosis, diabetes, obesity and the like and having an excellent medicinal effect. The present invention provides a compound represented by the formula (wherein each symbol is as described in the specification) or a salt thereof.デルタ-5-デサチュラーゼ阻害作用を有し、動脈硬化、糖尿病、肥満症等の疾患等の予防・治療に有用であり、かつ優れた薬効を有する化合物を提供すること。本発明は、式〔式中、各記号は明細書記載のとおり〕で表される化合物またはその塩を提供する。