Pure liquid water is most dense at 39.2°F (3.98°C) and decreases in density as it freezes. The water molecules in ice are held in a relatively rigid geometric pattern by their hydrogen bonds, producing an open, porous structure. Liquid water has fewer bonds; therefore, more molecules can occupy the same space, making liquid water more dense than ice.
Because water expands when it is frozen, therefor the atoms are more spread out causing it to be less dense that water