The anatomy of an earthquake