A sweeping review explains how MADS-box genes, microRNAs, hormones and environmental signals jointly control flowering, floral organ identity and sex differentiation in plants.