National energy grids occasionally suffer from catastrophic events leading to large-scale blackouts that impact on millions of people creating costly and dangerous disruption. EPSRC-sponsored mathematicians at the University of Southampton have been working with experts in power engineering at Durham University to develop new tools based on pure maths to help prevent and manage such events.