The present invention provides formula (I) or the compounds of (II), and wherein R1, R1b, R2, R3, R4, R5, R6 and R7 are defined as in the description. The compound and its pharmaceutical composition of formula (I) or (II) can treat disease relevant to B-Raf with what.本發明提供了式(I)或(II)的化合物,其中R1、R1b、R2、R3、R4、R5、R6和R7如說明書所定義。式(I)或(II)的化合物及其藥物組合物可用於治療與B-Raf相關的疾病。