Understanding how ions move through solid materials is key to advancing technologies such as batteries, fuel cells and sensors.