In prostate cancer, loss of the tumour suppressor gene,Retinoblastoma(Rb), and consequent activation of transcription factor E2F1 typically occurs at a late-stage of tumour progression. It appears to regulate a switch to an androgen-independent form of cancer, castration-resistant prostate cancer (CRPC), which frequently still requires androgen receptor (AR) signalling. We have previously shown that upon mating, binucleate secondary cells (SCs) of theDrosophila melanogastermale accessory gland (AG), which share some similarities with prostate epithelial cells, switch their growth regulation from a steroid-dependent to a steroid-independent form of Ecdysone Receptor (EcR) control. This physiological change induces genome endoreplication and allows SCs to rapidly replenish their secretory compartments, even when ecdysone levels are low because the male has not previously been exposed to females. Here, we test whether theDrosophilaRb homologue, Rbf, and E2F1 regulate this switch. Surprisingly, we find that excess Rbf activity reversibly suppresses binucleation in adult SCs. We also demonstrate that Rbf, E2F1 and the cell cycle regulators, Cyclin D (CycD) and Cyclin E (CycE), are key regulators of mating-dependent SC endoreplication, as well as SC growth in both virgin and mated males. Importantly, we show that the CycD/Rbf/E2F1 axis requires the EcR, but not ecdysone, to trigger CycE-dependent endoreplication and endoreplication-associated growth in SCs, mirroring changes seen in CRPC. Furthermore, Bone Morphogenetic Protein (BMP) signalling, mediated by the BMP ligand Decapentaplegic (Dpp), intersects with CycD/Rbf/E2F1 signalling to drive endoreplication in these fly cells. Overall, our work reveals a signalling switch, which permits rapid growth of SCs and increased secretion after mating, independently of previous exposure to females. The changes observed share mechanistic parallels with the pathological switch to hormone-independent AR signalling seen in CRPC, suggesting that the latter may reflect the dysregulation of a currently unidentified physiological process.