Ice is less dense than liquid water, therefore it floats.