An earthquake is caused by a sudden release of energy in the Earth's crust along faults. The Earth has layers including the crust, mantle, outer core, and inner core. Plate tectonics involves the movement of plates in the mantle which can cause earthquakes at plate boundaries. Earthquakes produce seismic waves that are measured with seismographs. The location of the earthquake is found using three seismograph locations. Building damage depends on factors like magnitude, soil type, and building construction quality.