The present article deals with the application of a new measurement method to determine the heat-transfer coefficient (HTC) and the heat flux density at the casting-die interface during highpressure die casting (HPDC) and solidification of the magnesium AZ91D alloy. The main measurements during the trial included velocity and the position of the piston that delivers the metal into the die, the pressure in the die cavity and at the tip of the piston, the alloy surface temperature, and the die temperature at different depths from the surface of the die. The temperature data were analyzed using an inverse method to determine the HTC at the castingdie interface during solidification. This article examines in detail the influence of the piston velocity and in-cavity pressure on heat transfer at the casting-die interface during casting and solidification of the magnesium AZ91D alloy.