Energy of phase changes

Melting and boiling take in energy without changing the temperature, because it goes into separating particles, so a heating curve has flat steps whose lengths are the enthalpies of fusion and vaporization.

From AP Chemistry.