Provided is a magnetic disk device capable of improving performance and
data reliability. A magnetic disk device according to an embodiment includes: a disk having a first track; a head which has a heater and which writes data to and reads data from the disk; and a controller that divides the first track into a plurality of divided regions, and sets a plurality of refresh thresholds for executing rewrite
processing for each of the plurality of divided regions in the first track. When it is determined that a first number of writes for data to an adjacent division region adjacent to a first division region in the radial direction of the disk among the plurality of division regions is greater than a first refresh threshold among the plurality of refresh thresholds corresponding to the first division region,
processing for
rewriting data is performed in the first track.