The urban history of Cairo can be divided into three main periods. The first extends from the Middle Ages to Napoleon's Egyptian campaign (1799-1801). During this time, the city developed from a military camp founded in 641 to a walled town with about 270,000 inhabitants. The city's most important Islamic monuments were created in this era, including the Ibn Tulun Mosque (876-79), the Al-Azhar Mosque (970), the city walls and gates (1087), the citadel (1176-82, ill. 3), the large cemeteries, and the monumental structures erected under the Mamelukes (13th-15th centuries).
