The dependence of the enthalpy of mixing on the structure of molten rare earth-alkali chloride mixtures has been investigated by molecular dynamics simulation. The experimental enthalpy of the mixing with its negative and its dependence on the cation size was qualitatively reproduced. It became clear that the enthalpy of mixing depends on the structural features of short and medium range.