The building should have a wide heavy base, declining weight as the height increases. It should allow some flexibility helps as well.
However, the ground makes a significant difference as well. Wood-frame houses withstand earthquakes very well because they can bend and "give" with the shock waves.