An earthquake can occur when two tectonic plates rub against each other, causing friction. A large earthquake, like the one that caused the massive Tsunami a couple years ago, occurs when one plate gets stuck and the tension builds up and is finally released in a jarring shock. Kind of like a rubber band being pulled further apart and then released