PROBLEM TO BE SOLVED: To provide an MRI apparatus and a shimming method capable of excellently correcting an uneven static field even in a region where an uneven static magnetic field is hardly corrected by global shimming.SOLUTION: A correction target region is divided into a plurality of regions, a shim correction value for causing a shim coil to generate a correction magnetic field is calculated for each of the divided regions, and the static magnetic field uneven distribution in the correction target region is corrected using the shim correction value for each of the divided regions.