The Mamluks experienced a continual state of political conflict, military tension, proxy wars, and economic competition between the "Muslim territory" (Dar al-Islam) and "non-Muslim territory" (Dar al-Harb). The Battle of Ain Jalut and the glorious Battle of Marj al-Saffar (1303), the latter partly led by Imam Ibn Taymiyyah, marked the end of the Mongol invasions of the Levant. Fatwas given during these conflicts changed the course of Political Islam. As part of their chosen role as defenders of Islamic orthodoxy, the Mamluks sponsored many religious buildings, including mosques, madrasas and khanqahs. Though some construction took place in the provinces, the vast bulk of these projects expanded the capital. Many Mamluk buildings in Cairo have survived to this day, particularly in Old Cairo (for further informations, see Mamluk architecture).