Nature, Published online: 19 February 2025; doi:10.1038/d41586-025-00298-7The mechanism that causes static electricity to build up is a mystery. Experiments now reveal that materials remember past contacts with each other and this determines how electric charge is transferred in future contacts.