The present invention relates to a compound represented by formula (I) for inhibiting the activity of diacylglycerol O-acyltransferase type 1 (DGAT1), and pharmaceutically acceptable salts thereof, and a pharmaceutical composition comprising same as an active ingredient. The compound of the present invention may be used effectively in the treatment or prevention of a disease or condition mediated by the activity of DGAT1 such as obesity, type II diabetes, dyslipidemia, metabolic syndrome, and the like, without any adverse effects: wherein A, B, X, and R 5 to R 7 are the same as defined in the specification.本発明は、ジアシルグリセロール O-アシルトランスフェラーゼ1型の活性を抑制する、下記化学式1の化合物およびその薬学的に許容可能な塩からなる群より選ばれる化合物及びこれを有効成分として含む薬学的組成物に関するもので、本発明の化合物は、DGAT1の活性により誘発される肥満、2型糖尿病、脂質異常症、代謝症候群等の疾患に対して副作用がなく有効な治療剤として活用することができる。[化学式1]前記化学式1において、A、B、XおよびR5~R7は、本願明細書で定義した通りである。【選択図】なし