When an earthquake occurs, energy is released in the form of seismic waves that travel through the Earth. There are two types of seismic waves: body waves and surface waves. Body waves travel through the interior of the Earth and include P waves and S waves. P waves are the fastest seismic waves while S waves move more slowly and can only pass through solids. Surface waves travel along the top of the Earth's crust and cause more damage than body waves.