One way to prevent the destruction wrought by a devastating earthquake – like the one that hit Morocco in September 2023 – is to construct resilient homes and buildings.