Why do earthquakes occur

Why do earthquakes occur?