The present invention provides a compound having a GOAT inhibitory action, useful for the prevention and treatment of obesity and the like, and having an excellent medicinal effect. The present invention is a compound represented by the formula (I): [wherein each symbol is as described in the specification] or a salt thereof. [Selection figure] None【課題】GOAT阻害作用を有し、肥満症等の予防・治療に有用であり、かつ優れた薬効を有する化合物の提供。【解決手段】本発明は、式(I):[式中、各記号は明細書記載のとおり]で表される化合物またはその塩である。【選択図】なし