Seismic waves are waves of energy that travel through the Earth's layers as a result of earthquakes and other seismic events. There are three main types of seismic waves: body waves that travel through the Earth's interior, and surface waves such as Rayleigh and Love waves that travel along the Earth's surface. Body waves include P-waves, which are compressional waves that move faster than S-waves, which are transverse shear waves. The propagation velocity of seismic waves depends on the density and elasticity of the medium, increasing with depth in the Earth.