The magnetic field protects against energetical and material influences. It is the most simple form of shielding a spaceship.