Here, a covalent inhibitor targeting cyclin-dependent kinase 7 (CDK7) demonstrates in vitro and in vivo efficacy against T-cell acute lymphoblastic leukaemia by downregulating oncogenic transcriptional programs. Pharmacological blockade of transcription is a possible means of targeting cancer cells. Direct pharmacological inhibition of transcription factors has proved problematic, so cyclin-dependent kinase (CDK) family members such as CDK7, which regulate transcription by phosphorylating the carboxy-terminal domain of RNA polymerase II, could provide more druggable targets. Here Nathanael Gray and colleagues use a cell-based screen to identify a novel transcriptional inhibitor, THZ1, that covalently targets CDK7 and has anti-proliferative activity in human T-cell acute lymphoblastic leukaemia cell lines and in a xenograft mouse model. THZ1 is a phenylaminopyrimidine that uses a mechanism combining ATP-site and allosteric covalent binding as a means of attaining potency and selectivity for CDK7. Tumour oncogenes include transcription factors that co-opt the general transcriptional machinery to sustain the oncogenic state1, but direct pharmacological inhibition of transcription factors has so far proven difficult2. However, the transcriptional machinery contains various enzymatic cofactors that can be targeted for the development of new therapeutic candidates3, including cyclin-dependent kinases (CDKs)4. Here we present the discovery and characterization of a covalent CDK7 inhibitor, THZ1, which has the unprecedented ability to target a remote cysteine residue located outside of the canonical kinase domain, providing an unanticipated means of achieving selectivity for CDK7. Cancer cell-line profiling indicates that a subset of cancer cell lines, including human T-cell acute lymphoblastic leukaemia (T-ALL), have exceptional sensitivity to THZ1. Genome-wide analysis in Jurkat T-ALL cells shows that THZ1 disproportionally affects transcription of RUNX1 and suggests that sensitivity to THZ1 may be due to vulnerability conferred by the RUNX1 super-enhancer and the key role of RUNX1 in the core transcriptional regulatory circuitry of these tumour cells. Pharmacological modulation of CDK7 kinase activity may thus provide an approach to identify and treat tumour types that are dependent on transcription for maintenance of the oncogenic state.