The universe is highly magnetic, with everything from stars to planets to galaxies producing their own magnetic fields. Astrophysicists have long puzzled over these surprisingly strong and long-lived fields, with theories and simulations seeking a mechanism that explains their generation.