A magnetic resonance imaging apparatus performs myocardial perfusion imaging of an object. An imaging unit acquires image data by imaging a heart of the object in synchronism with a biological signal from the object. An image generating unit generates an image concerning the heart of the object based on the image data. The imaging unit applies a probe pulse for detecting body motion of the object before imaging of the heart, and applies a spatial non-selective saturation pulse before application of the probe pulse, and a local selective pulse for flipping back a flip angle of the spatial non-selective saturation pulse with regard to a region to which the probe pulse is applied.