Earthquakes generate three types of seismic waves: P (primary) waves, S (secondary) waves and surface waves, which arrive at seismic recording stations one after another. Both P and S waves penetrate the interior of the Earth while surface waves do not. Due to this, P and S waves are known as body waves.