The Golden Horde of Jochi had been showing cracks in the 14th century, with periods of chaos within the polity. It was united by Tokhtamysh in the 1390s, but the invasion of Timur during this time further weakened the Horde. The death of Edigu (the last person to ever unite the Horde) in 1419 marked one of the final steps of the decay of the Golden Horde, which fractured into the separate states of the Nogai Khanate, the Kazan Khanate, and later the Kasimov Khanate, which had separated itself from Kazan.