Which statement correctly describes why earthquakes happen?

A. Earth’s crust switches places in a periodic manner.

B. Earth’s crust near magma melts, and the ground collapses.

C. Earth’s crust undergoes a cycle from a solid material to magma.

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

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