Tectonic plates are always slowly moving, but they can get stuck at their edges due to friction. When the stress on the edge of a tectonic plate overcomes the friction, there is an earthquake that releases energy in waves that travel through the earth's crust and cause the shaking that is felt. For example, in California, there are two plates, the Pacific Plate and the North American Plate.