Taipei 101 tower : Masterpiece in Earthquake resistant

how do some countries successfully build earthquake-resistant structures?