A bulge on both sides
The Moon's gravity pulls on Earth's oceans, but not evenly: it pulls hardest on the water nearest to it and weakest on the far side. The result is two bulges of water — one facing the Moon, drawn toward it, and one on the opposite side, effectively left behind. As Earth rotates beneath these bulges, each coast passes through high water roughly twice a day.
The Sun contributes too, with a smaller tide of its own. When Sun, Moon and Earth align at new and full moon, the tides add up into extra-high spring tides. When they sit at right angles, they partly cancel into gentler neap tides.
Why every coast is different
The tidy two-tide pattern is reshaped by reality. Continents block the bulges, ocean basins slosh at their own natural rhythms, and funnel-shaped bays can amplify the range enormously — Canada's Bay of Fundy sees tides of up to about 16 metres, the largest on Earth.
Some places get only one high tide a day, others a mixture. The Moon sets the tempo, but the local coastline writes the actual music.

