Water has strong intermolecular hydrogen bonds that hold the water molecules close together, making it very dense. As water freezes, the hydrogen bonds move further apart as it forms a hexagonal lattice. This means that ice contains fewer molecules per unit area and therefore making it less dense than water. This allows the solid to float on liquid water.