An aftershock is a smaller earthquake that occurs after a previous large earthquake, in the same area of the main shock. If an aftershock is larger than the main shock, the aftershock is redesignated as the main shock and the original main shock is redesignated as a foreshock. Aftershocks are formed as the crust around the displaced fault plane adjusts to the effects of the main shock.
A foreshock is an earthquake that occurs before a larger seismic event (the mainshock) and is related to it in both time and space. The designation of an earthquake as foreshock, mainshock or aftershock is only possible after the event.[1]