The invention relates to 1,5-benzothiazepine and 1,2,5-benzothiadiazepine derivatives of formula (I). These compounds are bile acid modulators having apical sodium-dependent bile acid transporter (ASBT) and/or liver bile acid transport (LBAT) inhibitory activity. The invention also relates to pharmaceutical compositions comprising these compounds and to the use of these compounds in the treatment of cardiovascular diseases, fatty acid metabolism and glucose utilization disorders, gastrointestinal diseases and liver diseases.本發明係關於式(I)之1,5-苯并噻氮呯及1,2,5-苯并噻二氮呯衍生物。此等化合物為具有小腸頂區鈉依賴性膽汁酸轉運蛋白(ASBT)及/或肝臟膽汁酸轉運(LBAT)抑制活性之膽汁酸調節劑。本發明亦關於包含此等化合物之醫藥組合物,以及此等化合物在治療心血管疾病、脂肪酸代謝及葡萄糖利用病症、胃腸道疾病及肝病中之用途。