Practical applications of magnesium as a lightweight structural metal are limited by its high work hardening, low ductility and fracture at very low strains; now molecular dynamics simulations reveal the origins of these problems and offer a route to design magnesium alloys with improved mechanical properties.