What causes tides to occur?

The gravitational attraction between the Sun, Earth, and Moon.

The magnetic pull of the Earth's poles

The shaking of the earth during earthquakes

Seafloor spreading