IMaX, a magnetograph developed for the Sunrise mission, observed the Sun from a stratospheric balloon above the Arctic. A precursor to SoPHI, which will equip the Solar Orbiter mission, IMaX has made key breakthroughs to understand the magnetic field which determines the behavior of the Sun