Most of today’s lithium-ion batteries, which power everything from cars to phones, use a liquid as the electrolyte between two electrodes. Using a solid electrolyte instead could offer major advantages for both safety and energy storage capacity, but attempts to do this have faced unexpected challenges.