What triggers the earthquake?

Earth is made up of many tectonic plates. When these plates shift, earthquakes happen. The tectonic plates are always moving, but most of the earthquakes are tremors (depends on how close you are to the place the tectonic plates are shifting).