Khan el-Khalili (Arabic: خان الخليلي) is a major souk in the Islamic district of Cairo. The bazaar district is one of Cairo's main attractions for tourists and Egyptians alike.The site of Khan el-Khalili was originally the site of the mausoleum known as the turbat az-za'faraan (Saffron Tomb), which was the burial site of the Fatimid caliphs.:57 The mausoleum was part of the Fatimid Great Eastern Palace complex, begun in 970 AD by Gawhar al-Siqilli, the general who conquered Egypt for the Fatimid dynasty and founded Cairo that same year.:56–57
By the time of Sultan Barquq, the first Circassian (or Burji) Mamluk Sultan in the late 14th century, Egypt had been significantly affected by the ravages of the Black Death but continued to be the center of great economic activity, and many commercial and religious buildings were constructed at this time.:147 During Barquq's first reign (1382-1389), his Master of the Stables (amir akhur),:179 the amir Jaharkas al-Khalili, destroyed the Fatimid cemetery to erect a large caravanserai (خان khan in Arabic; a building that could house merchants and their goods) at the heart of the city, reportedly disposing of the bones of the Fatimid royal family by throwing them into the rubbish hills east of the city.:57
The khan was located at the middle of Cairo's most important zone of economic activity, and later sultans also built commercial establishments nearby, including Sultan Qaytbay's wikala (another word meaning caravanserai) south of the Al-Azhar Mosque, and Sultan al-Ghuri's wikala just east of his mausoleum complex. This economic and commercial zone ran along the city's main north-south axis, the qasaba (now known as al-Mu'izz street), and was also the privileged site of many monumental religious complexes built throughout the Mamluk period and beyond. By the late 15th century, the district around Khan el-Khalili had also become the major center of foreign trade, which included the sale of slaves and precious stones.:62
Sultan al-Ghuri, Egypt's last important Mamluk sultan (1501-1516), modified the layout of the whole district through a major campaign of demolition and new construction. In addition to building his own religious and funerary complex and a large wikala (mentioned above, and still well-preserved today), he demolished the original khan built by al-Khalili and rebuilt it in 1511 as a commercial complex with monumental gates and a grid of regular parallel and perpendicular streets.[3]:179 This sort of complex resembled other examples of a qaysariyya (also bedestan in Turkish), a central bazaar where the most precious goods were sold and which often had roofed streets and was protected by locked gates at night. It's possible that this was done in imitation of similar commercial complexes in major Ottoman cities, at a time when the Ottoman Empire was the main rival of the Egyptian Mamluk state and when Turkish merchants were probably increasingly important in Cairo.:179
Among al-Ghuri's constructions was the Wikala al-Qutn ("of cotton"), parts of which are still visible today, including an ornate gate and upper stories whose external facade is lined with iron-grilled windows where merchants' rooms were located. Two other monumental gates, the Bab al-Badistan and the Bab al-Ghuri, also date from this time.:179
From al-Ghuri's reign onwards, the district became associated with Turkish merchants, and during the Ottoman period the Turkish community of Cairo established itself here.[