The effect of temperature on the corrosion resistance of layered double hydroxide (LDH) conversion coatings on AZ91D magnesium alloy, based on a closed-cycle system, was investigated. Scanning electron microscopy (SEM), photoelectron spectroscopy (XPS), and X-ray diffractometry (GAXRD) were used to study the surface morphology, chemical composition, and phase composition of the conversion coating. The corrosion resistance of the LDH conversion coating was determined through electropotentiometric polarisation curve and hydrogen evolution and immersion tests. The results showed that the conversion coating has the highest density and a more uniform, complete, and effective corrosion resistance at 50 °C. The chemical composition of the LDH conversion coating mainly comprises C, O, Mg, and Al, and the main phase is Mg6Al2(OH)16CO3·4H2O.