A series of 2-anilino-4-(1H-pyrrol-3-yl)pyrimidines were prepared and evaluated for their ability to inhibit cyclin-dependent kinases (CDKs). A number of analogues were found to be potent CDK2 and CDK4 inhibitors and to exhibit anti-proliferative activity against human tumour cell lines. Structure-activity relationships and biochemical characterization are presented.