Why does ice float on top of a liquid water?

Because when water freezes it becomes less dense therefore it can float on top of water.