Mutually-induced conformational switching of RNA and coat protein underpins efficient assembly of a viral capsid.