Here, the authors show that the receptor activator of NF-κB ligand (RANKL) signalling pathway has important functions in sperm production and maturation, improves fertility in male mice and shows potential as a male infertility target. The gene discussed is TNFSF11; the disease is male infertility.