O-GlcNAc transferase (OGT) coordinates with regulators of transcription, including cyclin-dependent kinase 12 (CDK12), the major transcription elongation kinase. Here, we use inhibitor- and knockdown-based strategies to show that co-targeting of OGT and CDK12 is toxic to prostate cancer cells. OGT catalyzes all nucleocytoplasmic O-GlcNAcylation and due to its essentiality in higher eukaryotes, it is not an ideal drug target. Our glycoproteomics-data revealed that short-term CDK12 inhibition induces hyper-O-GlcNAcylation of the spliceosome-machinery in different models of prostate cancer. By integrating our glycoproteomics-, gene essentiality- and clinical-data from CDK12 mutant prostate cancer patients, we identify the non-essential serine-arginine protein kinase 1 (SRPK1) as a synthetic lethal partner with CDK12-inactivation. Both normal and cancer cells become highly sensitive against inhibitors of OGT and SRPK1 if they have lowered activity of CDK12. Inactivating mutations in CDK12 are enriched in aggressive prostate cancer, and we propose that these patients would benefit from therapy targeting the spliceosome.