Magnetic fields affect astrophysical processes throughout the Universe. This Review explores how the generation, amplification and transport of astrophysical magnetic fields can be investigated in terrestrial experiments, using high-energy-density plasmas generated by intense lasers.