Increased overall efficiency in dye-sensitized solar cells (DSSCs) requires electrolytes with improved ionic conductivity and interfacial contact between the electrolyte and the dye-adsorbed semiconductor nanoparticles in the cell. The supramolecular electrolyte presented here (see Figure) achieves this due to its different behavior in the liquid and solid states.