An earthquake is because of a unexpected slip on a fault. The tectonic plates are constantly bit by bit moving, However they get caught at their edges on account of friction. When the worry on the edge overcomes the friction, there is an earthquake that releases Electrical power in waves that travel through the earth's crust and trigger the shaking