Earthquakes are caused when rock underground suddenly breaks along a fault. This release of energy causes the seismic waves that make the ground shake. When two blocks of rock or two plates are rubbing against each other, they stick a little. After they have rubbed against each other they cause a fault line that opens up.