This invention relates to certain novel pyrazine derivatives (Formula I) as SHP2 inhibitors which is shown as formula I, their synthesis and their use for treating a SHP2 mediated disorder. More particularly, this invention is directed to fused heterocyclic group derivatives useful as inhibitors of SHP2, methods for producing such compounds and methods for treating a SHP2-mediated disorder.