The present invention provides a new group of protein kinase inhibitors, pyrropyrimidine and pyrazolopyrimidine derivatives, and pharmaceutically acceptable salts and prodrugs thereof that are useful for treating cell proliferative disease and disorder such as cancer, autoimmune diseases, infection, cardiovascular disease and neurodegenerative disease and disorder. The present invention provides methods for synthesizing and administering the protein kinase inhibitor compounds. The present invention also provides pharmaceutical formulations comprising at least one of the protein kinase inhibitor compounds together with a pharmaceutically acceptable carrier, diluent or excipient therefor. The invention also provides useful intermediates generated during the syntheses of the pyrropyrimidine and pyrazolopyrimidine derivatives.