Tides
Most coasts have two high tides and two low tides in a little more than a day. The interval is about 24 hours and 50 minutes, because the Moon moves along its orbit while the Earth turns, so a point on the Earth needs the extra time to face the Moon again.
The Moon's gravity pulls harder on the side of the Earth that faces it than on the far side. The difference stretches the oceans into two bulges, one towards the Moon and one away from it. A coast passes through both bulges as the Earth rotates.
The Sun raises tides in the same way. It's far more massive than the Moon and also far more distant, and its effect on the tides is a little less than half of the Moon's.
When the Sun, the Earth and the Moon are in a line, at new moon and at full moon, the two effects add. These are spring tides, with the highest high water and the lowest low water. The name has nothing to do with the season.
When the Moon is at first or third quarter, the Sun and the Moon pull at right angles and partly cancel. These are neap tides, with a small difference between high and low water.
The shape of the coast matters more than either body. In the open ocean the tide is well under a metre. A funnel-shaped bay can raise it to more than ten metres, as in the Bay of Fundy in Canada.
Tide tables are worked out years ahead. The tide at a port is treated as a sum of regular waves, each with a period set by the motions of the Earth, the Moon and the Sun, and the size of each wave is fitted from past measurements at that port.