The Ayyubid sultans built a new political order in Egypt, Syria, Al-Jazirah, and Mecca and Medina. Simultaneously, the sultans of Konya integrated Anatolia into the Muslim world. These two states laid the foundations for the Ottoman Porte destined to end the Crusades.