Inhibiting CDK12 in cancer cells without CDK12 mutations leads to gene length-dependent elongation defects, inducing cleavage maturation early, polyadenylation and loss of the expression of long (>45 kb) genes 12. Here, CDK12 is linked to cancer.