The objective is to provide a magnetic recording device that can prevent problems caused by buildup products and improve
recording density. [Solution] According to the embodiment, the magnetic recording device comprises a disk-shaped recording medium having a recording surface coated with a
lubricant, a magnetic head including a recording element, a
light source, and a light-emitting element that irradiates light onto the recording surface of the recording medium, a
light source control circuit that controls the drive current value of the
light source, a cleaning execution circuit that performs a cleaning operation to remove buildup products adhering to the magnetic head, and a controller including a setting circuit that sets the cleaning interval for performing the cleaning operation.