The P-wave (primary or pressure wave) is a pulse of energy that travels quickly through the earth and through liquids. It forces the ground to move backwards and forwards as it is compressed and expanded. The S-wave (secondary or shear wave) follows more slowly, with a swaying, rolling motion that shakes the ground back and forth perpendicular to the direction of the wave.