At the UMC Utrecht, The Netherlands, we have constructed a prototype MRI accelerator. The prototype is a modified 6 MV Elekta (Crawley, UK) accelerator next to a modified 1.5 T Philips Achieva (Best, The Netherlands) MRI system. From the initial design onwards, modifications to both systems were aimed to yield simultaneous and unhampered operation of the MRI and the accelerator. Indeed, the simultaneous operation is shown by performing diagnostic quality 1.5 T MRI with the radiation beam on. No degradation of the performance of either system was found. The integrated 1.5 T MRI system and radiotherapy accelerator allow simultaneous irradiation and MR imaging. The full diagnostic imaging capacities of the MRI can be used; dedicated sequences for MRI-guided radiotherapy treatments will be developed. This proof of concept opens the door towards a clinical prototype to start testing MRI-guided radiation therapy (MRIgRT) in the clinic.