Researchers have shown how to shuttle lithium ions back and forth into the crystal structure of a quantum material, representing a new avenue for research and potential applications in batteries, ‘smart windows’ and brain-inspired computers containing artificial synapses.