Magnetic shielding limits the magnetic field (5 gauss line) emitted by an MRI scanner to protect users outside the area (e.g. when the imaging room is located against an exterior wall).
Magnetic shielding can also be used to reduce the effect of moving external objects on the MRI (e.g. moving vehicles near a building in which an MRI machine is located).