People in ancient cultures who lived in earthquake areas built earthquake-resistant buildings. In Buddhist pagodas in Japan the central shaft is sunk into the ground. Flexible joints attach the roof sections to the central shaft. The shaft sways during an earthquake, but the roof doesn't fall.
Chínese architects designed tentlike structures. Each building had a sloping, tiled roof. A central wooden beam supported the length of the roof. Each end of the beam had vertical shafts driven deep into rock. Lightweight bamboo walls hung from the roof, almost like curtains. The walls absorbed energy by swaying, since they were supported by the roof and not by the ground.
In the American Southwest and in Central America, adobe buildings remain standing after numerous earthquakes. Adobe walls are made of clay bricks with a crisscross network of twigs. This construction gives flexibility to each wall. The walls absorb the energy of earthquake waves to remain standing.