An earthquake's destructiveness depends on many factors. In addition to magnitude and the local geologic conditions, these factors include the focal depth, the distance from the epicenter, and the design of buildings and other structures. The extent of damage also depends on the density of population and construction in the area shaken by the quake.