The mainshock is the largest shock in a sequence of seismic events, typically associated with the initial rupture of a fault line during an earthquake. It serves as the primary event that triggers subsequent aftershocks, which are smaller tremors that occur in the same general area as the mainshock. Understanding the mainshock is crucial for assessing earthquake intensity and potential damage.