The structure of a tetrahydrofolate-sensing riboswitch reveals two ligand binding sites in a single aptamer.