https://www.youtube.com/watch?v=3RdkXs8BibE
The Moon’s gravity raises two ocean bulges, one facing the Moon and one on the far side.
Those bulges stay roughly lined up with the Moon. The continents rotate through them, which is why the tide comes in and out twice a day.