An aftershock is an earthquake that occurs after a previous earthquake, the mainshock. An aftershock is in the same region of the main shock but always of a smaller magnitude. Aftershocks are formed as the crust adjusts to the effects of the main shock.