For instance, water warms when treated with CaCl 2 (anhydrous calcium chloride) as a consequence of the large heat of hydration. However, the hexahydrate, CaCl 2 ·6H 2 O cools the water upon dissolution. The latter happens because the hydration energy does not completely overcome the lattice energy, and the remainder has to be taken from the water in order to compensate the energy loss.