Ocean tides are the result of:
Gravitational force between earth and moon.
Gravitational force between earth and moon pull each other. Since, the water is always in motion; the gravitational force of the moon is able to pull it. As a result, water in the ocean bulges or recedes according to the direction of the moon. This movement of ocean water is known as tides.