Every earthquake creates P waves and S waves. P waves travel away from the focus of an earthquake where the rocks first fractured by compressing and expanding the rocks as they travel through solids, liquids and gases. P waves travel through all parts of the Earth.