The 13th-century Mongol invasion devastated Kievan Rus'. Kyiv was totally destroyed in 1240. On today's Ukrainian territory, the principalities of Halych and Volodymyr-Volynskyi arose, and were merged into the state of Galicia–Volhynia.