The invention relates to an inhibitor of bromine (bromo) and external bromine (BET) domains suitable for the treatment of cancer, inflammatory disease, diabetes and obesity, which has formula (I): wherein W, x, y, Z, R1, R2, R5 and R8 are as described herein.本發明關於適用於治療癌症、發炎性疾病、糖尿病和肥胖症的溴(bromo)和外端(BET)溴域的抑制劑,其具有式(I):其中W、X、Y、Z、R1、R2、R5和R8如本文所述。