Buildings are basically designed to support a vertical load in order to support the walls, roof and all the stuff inside to keep them standing. Earthquakes present a lateral, or sideways, load to the building structure that is a bit more complicated to account for. One way to to make a simple structure more resistant to these lateral forces is to tie the walls, floor, roof, and foundations into a rigid box that holds together when shaken by a quake.