Electrochemical-reaction pathways in lithium–sulfur batteries have been studied in real time at the atomic scale using a high-resolution imaging technique. The observations revealed an unexpected collective charge-transfer process that could lead to improvements in the performance of these batteries. High-resolution imaging unveils the electrochemical-reaction dynamics in batteries.