Here, the authors show that gain-of-function mutant p53 collaborates with ERG proto-oncogene to drive prostate cancer tumourigenesis by activating beta-catenin expression and afterwards pyrimidine synthesis. Here, CTNNB1 is linked to prostate carcinoma.