Ice is less dense than water because of the hydrogen bonding. As water is cooled down, the molecules have less energy and hydrogen bonding takes over. The molecules form a ordered crystal through hydrogen bonding that spaces the molecules farther apart than when they were in a liquid. This makes ice less dense than water allowing it to float.