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