A longitudinal wave occurs when the disturbance moves in the same direction as the wave itself. Sound is an example of a longitudinal wave. A compression is where the particles of the medium are closest together, and a rarefaction is where the particles are farthest apart.