The present invention provides formula (I) and formula (II) compound and its pharmaceutical composition, can be used as kinases inhibitor, and use compound treating, ameliorating or preventing illness relevant to abnormal or imbalance kinase activity. In some embodiments, the present invention, which is provided, is related to the method for the disease or illness of abnormal activation of c-kit or c-kit and PDGFR (PDGFR α, PDGFR β) kinases using the compound treating, ameliorating or preventing.本發明提供式(I)和式(II)化合物以及其藥物組合物,其可用作蛋白激酶抑制劑,以及使用所述化合物治療、改善或預防與異常或失調的激酶活性相關的疾患。在一些實施方案中,本發明提供使用所述化合物治療、改善或預防涉及c-kit或者c-kit和PDGFR(PDGFRα、PDGFRβ)激酶的異常活化的疾病或病症的方法。