Earthquakes occur when the stored stress in the rock exceeds its strength. Energy is released as the rocks fractures and moves in the form of seismic waves. The energy released causes vibrations creating ground movement in the form of an earthquake. After the stress is suddenly released, the ground moves back to its original position following elastic rebound theory.