Earthquakes can occur when
tectonic plates collide.
tectonic plates slide under continents and oceans.
tectonic plates slip.
all of the above
This is science BTW