Earthquakes occur when these moving plates grind and scrape against each other. When movement occurs along a fault, the motion we feel is the result of several kinds of seismic waves. Seismic waves are divided into body waves and surface waves. Surface waves occur on the outer layer of the crust and body waves occur deeper. P waves and S waves are body waves.
P waves travel the fastest and hit first.
These wave move up and down with vibrations that are perpendicular to the direction that the wave is traveling and cause a structure to vibrate from side to side. These arrive last, causing low-frequency vibrations. R and L waves are more likely than P and S waves to cause tall buildings to vibrate. Earthquakes can be very dangerous. Identifying potential hazards ahead of time and advance planning can reduce the dangers of serious injury, property damage or loss of life from an earthquake.