Which statement correctly describes why earthquakes happen?

A. Earth's crust near magna melts, and the ground collapses.
B. Earth's crust udergoes a cycle from a solid material to magna.
C.Earth's crust switches placs in a periodic manner.
D.Earth's crust suddenly slips along a fault.

D. Earth's crust suddenly slips along a fault.