Sultan of Egypt was the status held by the rulers of Egypt after the establishment of the Ayyubid dynasty of Saladin in 1174 until the Ottoman conquest of Egypt in 1517. Though the extent of the Egyptian Sultanate ebbed and flowed, it generally included Sham and Hejaz, with the consequence that the Ayyubid and later Mamluk sultans were also regarded as the Sultans of Syria. From 1914, the title was once again used by the heads of the Muhammad Ali dynasty of Egypt and Sudan, later being replaced by the title of King of Egypt and Sudan in 1922.