Scarcely ever has Islām experienced more tragical times and more hardships than during the Mongol invasion in the course of the thirteenth century a.d. With the despite of the nomads, practitioners of the open-air life, for sedentary occupations, the people of Jengis Khān turned against and mercilessly destroyed the towns and works of civilization everywhere. Their disastrous campaign was only facilitated by the decomposition of the political unity of Islām at that time. In Baghdād the 'Abbāsid caliphate still subsisted, but its splendour was on the wane; to the west of Baghdād, in Egypt, Palestine, and a part of Syria, the Ayyūbids reigned, and in Asia Minor the Seljūqs, while to the east of Baghdād the Turkish princes from Khiva had, a rather insecure hold on the vast stretch of the Khwārizmian empire from the Ganges to the Tigris and from Turkestān to the Indian Ocean. This state of affairs was inviting to an enterprising invader of the sort of Jengis Khān who, in 1218, crushed the Khwārizmian empire, while his grandson, Hūlāghū Khān, put an end to the 'Abbāsid caliphate in 1258. The western provinces of Islām, including Egypt, were, however, spared from the devastating fury of the Mongols by the Mamlūk Sulṭān's victory over Ketbogha, Hūlāghū's general, at 'Ayn Jālūt, Palestine, in 1260. When in 1299–1301 his grandson Qāzān failed in conquering Syria Islām was definitely safe from further Mongol attacks.