Earthquake-resistant structures are structures designed to protect buildings to some or greater extent from earthquakes. While no structure can be entirely immune to damage from earthquakes, the goal of earthquake-resistant construction is to erect structures that fare better during seismic activity than their conventional counterparts. According to building codes, earthquake-resistant structures are intended to withstand the largest earthquake of a certain probability that is likely to occur at their location.This means the loss of life should be minimized by preventing collapse of the buildings for rare earthquakes while the loss of the functionality should be limited for more frequent ones.