as a ship moves through water it continually creates wakes and surface waves whose behavior is constrained by the pull of gravity—in fact, the waves you are familiar with on oceans and lakes are technically called gravity waves. So indirectly gravity plays an important role in the motion of ships.