The present invention provides the aminopyridines of general formula (1) and Aminopyrazine compound, the composition including these compounds and preparation method thereof. The preferred compound of general formula 1 has as kinases inhibitor, includes activity as inhibitors of c-met.本發明提供了通式(1)的氨基吡啶和氨基吡嗪化合物、包括這些化合物的組合物及其製備方法。通式1的優選化合物具有作爲蛋白激酶抑制劑、包括作爲c-MET抑制劑的活性。