Earthquakes occur when built-up stress causes rocks beneath the earth's surface to suddenly break along faults. Rocks experience stress as the tectonic plates they reside in move and push against each other. This stress accumulates until it surpasses the rocks' elastic limit, at which point the rocks snap in an earthquake. The type of fault that forms depends on whether the rocks experience tension, compression, or shearing forces from plate movement.