Building materials

Why can ductile behavior be beneficial in a structural component approaching failure?