Why does water expands on freezing?
The molecules of most elements are more compact in their solid form than they are in their liquid state, but water is different.
As you may know, each water molecule is made up of one oxygen atom with two hydrogen atoms attached. The hydrogen atoms in water have a positive charge and cause the water molecules to be attracted to one another. This attraction forces water to form a net of crystals with lots of gaps in it as it freezes.
The crystal net structure takes up more space than liquid water and so water expands as it turns to ice.
(in detail):
Most liquids have a quite simple behavior when they are cooled (at a fixed pressure): they shrink. The liquid contracts as it is cooled; because the molecules are moving slower they are less able to overcome the attractive intermolecular forces drawing them closer to each other. Then the freezing temperature is reached, and the substance solidifies, which causes it to contract some more because crystalline solids are usually tightly packed.
Water is one of the few exceptions to this behavior. When liquid water is cooled, it contracts like one would expect until a temperature of approximately 4 degrees Celsius is reached. After that, it expands slightly until it reaches the freezing point, and then when it freezes it expands by approximately 9%.
This unusual behavior has its origin in the structure of the water molecule. There is a strong tendency to form a network of hydrogen bonds, where each hydrogen atom is in a line between two oxygen atoms. This hydrogen bonding tendency gets stronger as the temperature gets lower (because there is less thermal energy to shake the hydrogen bonds out of position). The ice structure is completely hydrogen bonded, and these bonds force the crystalline structure to be very "open"