Magnetic fields are observed on virtually all astrophysical scales of the modern Universe, from planets and stars to galaxies and galaxy clusters. Observations of blazars suggest that even the intergalactic medium is permeated by magnetic fields. Such large-scale fields were most likely generated very shortly after the Big Bang and therefore are a unique window into the physics of the very early Universe.