Scientists have deciphered ancient records of a global catastrophe