A foreshock is a smaller earthquake that occurs in the same area before a larger seismic event, known as the mainshock. Foreshocks can happen minutes to days before the main event and may serve as a warning of an impending larger earthquake. However, not all earthquakes have foreshocks, and distinguishing between them can be challenging. Understanding foreshocks can help in assessing earthquake risks and improving preparedness.