Planning and preparing for earthquakes and their aftermath, such as ensuring the safety of buildings and people.