ESA’s NanoMagSat Scout mission will measure Earth’s magnetic field to help assess space weather hazards. NanoMagSat will allow for a much-improved understanding of the dynamics of the magnetic field and of the role of the Sun in the coupled atmospheric–ionospheric–magnetospheric system.