Scientists used a lab experiment on Earth to copy magnetic reconnection, a process that powers solar flares. The experiment shows how electrons gain energy during this process.