HAMR works by combining plasmonic heating with magnetic recording. A tiny laser diode integrated into the read/write head of the hard drive focuses a beam of light onto a small area of the disk. This localized heating temporarily reduces the coercivity of the recording medium, allowing the magnetic field to alter the magnetic orientation easily. Once the temperature returns to normal, the material retains the new magnetic state, ensuring data stability.