Single-nucleus RNA-sequencing and chromatin-accessibility analyses in rice (a C3 plant) and sorghum (a C4 plant) provide insight into how C4 photosynthesis evolved in bundle-sheath cells, revealing that the acquisition of ancestral cis-elements was key.