The present invention provides a combined radiotherapy and MRI system in which an imaging coil is mounted on a mechanical arm. The position of the imaging coil is thus known and in embodiments can be controlled to prevent collisions with the patient and unfavourable interactions between the imaging coil and the radiation beam.