Earthquakes occur close to plate boundaries.