Designing new structures and retrofitting existing buildings to ensure safety and resilience against seismic activity.