What causes the plates to move that make an earthquake?

Friction causes the plants to move.