An aftershock is an earthquake that occurs after a previous earthquake (the main shock). An earthquake is the result of a sudden release of energy in the Earth 's crust that creates Seismic waves Earthquakes are recorded with a Seismometer An aftershock is in the same region of the main shock but is always of smaller magnitude strength. 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 smaller earthquakes formed as the displaced plate boundary tries to adjust itself. Plate tectonics (from Greek τέκτων tektōn "builder" or "mason" describes the large scale motions of Earth 's Lithosphere
Many scientists hope to use foreshocks to predict upcoming earthquakes. In particular, the East Pacific Rise transform faults show foreshock activity before the main seismic event. The East Pacific Rise is a Mid-oceanic ridge, a divergent tectonic plate boundary located along the floor of the Pacific Ocean. A transform fault is a fault which runs along the boundary of a Tectonic plate. Reviews of data of past events and their foreshocks showed that they have a low number of aftershocks and high foreshock rates compared to continental strike-slip faults. In Geology a fault, or fault line, is a planar rock fracture which shows evidence of relative movement (McGuire et al. , 2005)
Aftershocks (and foreshocks) occur with a pattern that follows Omori's law.  Omori's law, or more correctly the modified Omori's law, is an empirical relation for the temporal decay of aftershock rates. In 1894, Omori published his work on the aftershocks of earthquakes, in which he stated that aftershock frequency decreases by roughly the reciprocal of time after the main shock.
According to these equations, the rate of aftershocks decreases quickly with time. The rate of aftershocks is proportional to the inverse of time since the mainshock. Thus whatever the odds of an aftershock are on the first day, the second day will have 1/2 the odds of the first day and the tenth day will have approximately 1/10th the odds of the first day (when p is equal to 1). These patterns describe only the mass behavior of aftershocks; the actual times, numbers and locations of the aftershocks are 'random', while tending to follow these patterns. As this is an empirical law values of the parameters are obtained by fitting to data after the mainshock occurred and they have no physical basis/meaning.
The other main law describing aftershocks is known as Bath's Law and this says that any mainshock typical has an aftershock approximately 1 magnitude (on average 1. TalkMoment magnitude scale#Real world examples please.--> The moment magnitude scale 2) less than its mainshock. Aftershock sequences also typical follow Gutenberg-Richter scaling. In Seismology, the Gutenberg–Richter law expresses the relationship between the magnitude and total number of Earthquakes in any given region and time
Aftershocks are dangerous because they are usually unpredictable, can be of a large magnitude, and can collapse buildings that are damaged from the mainshock. Bigger earthquakes have more and larger aftershocks and the sequences can last for years or even longer especially when a large event occurs in a seismically quiet area; see, for example, the New Madrid Seismic Zone, where events still follow Omori's law from the mainshocks of 1811-1812. This article is about the seismic zone in southeastern Missouri An aftershock sequence is deemed to have ended when the rate of seismicity drops back to a background level; i. e. , no further decay in the number of events with time can be detected.