An earthquake occurs when the pressure built up along a fault becomes stronger than the pressure holding the rocks together. Then the rocks on either side of the fault suddenly rip apart, sometimes at supersonic speeds. The two sides of the fault slide past one another, releasing the pent-up pressure. Energy from this separation radiates outward in all directions, including towards the surface, where it is felt as an earthquake