Dear student,
The water has a unique property of anomalous expansion which means if the water is heated from zero to 4 degree Celsius, it becomes increasingly dense like other liquids and reaches its maximum density at 4° C, and when it is cooled from 4oC to 0oC, the density of water decreases.
Regards