Original: The moment magnitude (or the related and mostly obsolete Richter magnitude) of an earthquake is conventionally reported, with magnitude 3 or lower earthquakes being mostly and magnitude 7 causing serious damage over large areas.
Simplified: Aftershocks are formed as the crust adjusts to the effects of the main shock.