A radiation therapy System comprises a magnetic resonance imaging (MRI) apparatus and a linear accelerator capable of generating a beam of radiation. The linear accelerator is immersed in and oriented with respect to the MRI magnetic field to expose the linear accelerator to magnetic force that directs particles therein along a central axis thereof.