An imaging time is shortened while reducing image distortion caused by a magnetic field disturbance caused by metal inside a subject.A plurality of frequency bands is set within a predetermined frequency range, a subject is caused to be irradiated with a high-frequency magnetic field pulse having one of the plurality of frequency bands from a transmission unit, a reception unit is caused to receive an NMR signal generated by the subject, an image generation unit is caused to repeatedly perform an operation for generating an image from the NMR signal while changing the frequency band, a plurality of images respectively corresponding to the plurality of frequency bands are obtained, and then the plurality of images are composited. In this case, the plurality of frequency bands are set so that adjacent frequency bands partially overlap each other. A bandwidth of the plurality of frequency bands is narrowest for the frequency band including a specific frequency within the frequency range, and stepwisely or continuously widens in a direction away from the specific frequency.