An earthquake is caused by a sudden slip on a fault. Stresses in the earth's outer layer push the sides of the fault together. Stress builds up and the rocks slips suddenly, releasing energy in waves that travel through the earth's crust and cause the shaking that we feel during an earthquake. An EQ occurs when plates grind and scrape against each other. In California there are two plates the Pacific Plate and the North American Plate. The Pacific Plate consists of most of the Pacific Ocean floor and the California Coast line. The North American Plate comprises most the North American Continent and parts of the Atlantic Ocean floor. These primary boundary between these two plates is the San Andreas Fault. The San Andreas Fault is more than 650 miles long and extends to depths of at least 10 miles. Many other smaller faults like the Hayward (Northern California) and the San Jacinto (Southern California) branch from and join the San Andreas Fault Zone. The Pacific Plate grinds northwestward past the North American Plate at a rate of about two inches per year. Parts of the San Andreas Fault system adapt to this movement by constant "creep" resulting in many tiny shocks and a few moderate earth tremors. In other areas where creep is NOT constant, strain can build up for hundreds of years, producing great EQs when it finally releases.