Earthquakes occur when there is a sudden movement along faults within the Earth. This movement releases stored-up energy in the…