Why ice floats (and why it matters)
Most substances are denser as solids than as liquids. Water is the famous exception: ice is about nine percent less dense than the water it froze from.
An open lattice
Each water molecule can form hydrogen bonds with four neighbours. In liquid water those bonds constantly break and re-form, letting molecules crowd together. When water freezes, the bonds lock into a hexagonal lattice that holds the molecules further apart, leaving open space in the structure.
Lakes freeze from the top
Because ice floats, a frozen lake keeps a lid of ice over liquid water. The ice insulates what lies beneath, and life in the lake survives the winter.