Egypt - Cairo 6Old Cairo or Al-Fustat ??????? was founded in AD 648 near other Egyptian cities and villages, including the old Egyptian capital Memphis, Heliopolis, Giza and the Byzantine fortress of Babylon-in-Egypt. However, Fustat was itself a new city built as a military garrison for Arab troops and was the closest central location to Arabia that was accessible to the Nile. Fustat became a regional center of Islam during the Umayyad period and was where the Umayyad ruler, Marwan II, made his last stand against the Abbasids. Later, during the Fatimid era, Al-Qahira (Cairo) was officially founded in AD 969 as an imperial capital and it absorbed Fustat. During its history various dynasties would add suburbs to the city and construct important structures that became known throughout the Islamic world including the Al-Azhar mosque. Conquered by Saladin and ruled by Ayyubids starting in 1171, it remained an important center of the Muslim world. Slave soldiers or Mamluks seized Egypt and ruled from their capital at Cairo from 1250 to 1517 when they were defeated by the Ottomans. Following Napoleon's brief occupation, an Ottoman officer named Muhammad Ali made Cairo the capital of an independent empire that lasted from 1801 to 1882. The city came under British control until Egypt attained independence in 1922.