Cyclin-dependent kinase 7 is an attractive therapeutic target for the treatment of cancers, and a previous report suggested that Plasmodium falciparum CDK7 is a potential drug target for developing new anti-malarial drugs. In this study, we aimed to characterize and evaluate the drug target potential of Theileria annulata CDK7. Theileria annulata is responsible for tropical theileriosis, which induces a phenotype similar to cancerous cells like immortalization, hyperproliferation, and dissemination. Virtual screening of the MyriaScreen II library predicted 14 compounds with high binding energies to the ATP-binding pocket of TaCDK7. Three compounds (cimicifugin, ST092793, and ST026925) of these 14 compounds were non-cytotoxic to the uninfected bovine cells (BoMac cells). Cimicifugin treatment led to the activation of the extrinsic apoptosis pathway and induced autophagy in T. annulata-infected cells. Furthermore, cimicifugin also inhibited the growth of P. falciparum, indicating that it has both anti-theilerial and anti-malarial activities and that TaCDK7 and PfCDK7 are promising drug targets.