We synthesized a series of novel 2-anilinopyrazolo[1,5-a]pyrimidine derivatives and evaluated their ability to inhibit c-Src kinase; 7-(2-amino-2-methylpropylamino)-5-cyclopropyl-2-(3,5-dimethoxyphenylamino)pyrazolo[1,5-a]pyrimidine-3-carboxamide 7o and 7-(2-amino-2-methylpropylamino)-2-(3,5-dimethoxyphenylamino)-5-methylpyrazolo[1,5-a]pyrimidine-3-carboxamide 7f showed potent inhibitory activity. Compound 7f inhibited c-Src selectively and exhibited satisfactory central nervous system (CNS) penetration. Furthermore, 7f.HCl reduced the infarct volume in vivo in a rat middle cerebral artery (MCA) occlusion model when administrated intraperitoneally.