The present invention relates to the field of pharmaceutical chemistry, and particularly to a novel class of benzazepine ketone derivatives (I), their preparation method and their pharmaceutical uses. The compounds have glycogen phosphorylase inhibiting effect and can be used in the preparation of anti-diabetes and its complications medicaments, anti-cerebral ischemia medicaments, anti-cardiovascular diseases medicaments, blood lipid-lowering medicaments, weight-reducing medicaments, anti-atherosclerosis medicaments, medicaments for treating metabolic syndrome or anti-tumor medicaments. The present invention also relates to a preparation method of the class of compounds and pharmaceutical formulations containing the same.