Ionic solutes are held together by attractive interactions called Coulombic forces.
When ionic solutes are dissolved in water, the hydrogen bonds between the water molecules break and disrupt the Coulombic forces between the ions.
Breaking up an ionic crystal lattice into its constituent ions in this manner requires a large energy input and, thus, the enthalpy of the solute is an endothermic process.
The energy released when one mole of ionic solid is formed from the constituent gaseous ions is called the lattice energy and is always exothermic. Thus, the enthalpy to break one mole of the solute into its components is equal and opposite to the lattice energy.
However, when an ionic lattice is broken in an aqueous solution, each ion is surrounded and stabilized through ion-dipole interactions with the oppositely charged end of the water dipole.
This phenomenon is called hydration. The enthalpy change associated with the dissolution of one mole of ions in water is known as the heat of hydration. It is a combination of the enthalpy of the solvent and the enthalpy of mixing.
Since the ion-dipole interactions between a hydrated ion and the water molecules are much stronger than the hydrogen bonds in water alone, hydration is always an exothermic process.
The overall enthalpy of the solution is a sum of the endothermic enthalpy of the solute and the exothermic heat of hydration and therefore depends on the relative magnitudes of these two terms.
If the enthalpy of the solute is less than the heat of hydration, the enthalpy of solution will be negative, and dissolution will be exothermic—as seen in a sodium hydroxide solution.
If the enthalpy of the solute is greater than the heat of hydration, the enthalpy of solution will be positive and dissolution will be endothermic—as in an ammonium chloride solution.
If the enthalpy of the solute is much greater than the heat of hydration, the solute will remain insoluble in water—as seen in the case of calcium sulfate.
If the two terms are close to equal, the enthalpy of solution will be nearly zero, as it is for sodium chloride. Such solutes do not change the temperature of the solution.