The present invention provides a benzoic ester compound having an enteropeptidase inhibitory activity and a use of the compound as a medicine for the treatment or prevention of obesity, diabetes, etc. The compound is represented by formula (I) (wherein the symbols are as defined in the description). The compound or a salt thereof has an enteropeptidase inhibitory activity and is useful as a medicine for the treatment or prevention of obesity, diabetes, etc.La présente invention concerne un composé d'ester benzoïque ayant une activité inhibitrice d'entéropeptidase et une utilisation du composé en tant que médicament pour le traitement ou la prévention de l'obésité, du diabète, etc. Le composé est représenté par la formule (I) (dans laquelle, les symboles sont tels que définis dans la description). Le composé ou un sel de celui-ci a une activité inhibitrice d'entéropeptidase et est utile en tant que médicament pour le traitement ou la prévention de l'obésité, du diabète, etc.本願発明は、エンテロペプチダーゼ阻害作用を有する安息香酸エステル化合物、及び前記化合物の肥満症、糖尿病等の治療又は予防のための医薬としての使用を提供する。 式(I):[式中、各記号は明細書中で定義した通りである。] で表される化合物又はその塩は、エンテロペプチダーゼ阻害作用を有し、肥満症、糖尿病等の治療又は予防のための医薬として有用である。