Earthquakes occur when tectonic plates suddenly shift, releasing stored elastic strain energy and creating seismic waves. There are several types of faults that can cause earthquakes. To prepare, secure heavy objects, maintain emergency supplies, identify safe spots away from windows or tall furniture, and develop evacuation plans. During shaking, drop and cover inside until it stops, then check for injuries and gas leaks after. Listen to officials for information on damaged areas to avoid after an earthquake.