The present invention relates to certain pyrrolopyrimidine derivatives, pharmaceutical compositions containing them, and methods of using them, including methods for the treatment of tumors and related diseases related to the dysregulation of kinase (such as EGFR (including HER), Alk, PDGFR, but not limited to) pathways.