Tectonic Earthquake happens when two plates collide together. This is the reason why most earthquakes happen. This occurs when rocks in the crust break, due to geological forces created by the movements of the plates.
There could be mountains created when convergent boundary happen. A convergent boundary is when two plates collide with each other. There could also be a transform boundary, when two plates rub at each other and make earthquakes, such as the picture bellow. There is a movement with plates, but with no earthquakes, which is called divergent boundary where two two plates separate and make a valley.