The reason that a ship floats is that it displaces a lot of water. The displaced water wants to return to it's original location, where the ship is now, and this pushes the ship upwards. The force which pushes the ship up is called the buoyancy force.