In the early 16th century, Sultan al-Ghuri, Egypt's last effective Mamluk sultan (ruled 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 by his own name nearby, he demolished the original khan built by al-Khalili and rebuilt it in 1511. It became known as the "Khan al-Fisqiya" ("Khan of the Fountain") for centuries, until later being known as the "Wikala al-Qutn" ("Wikala of Cotton"). Al-Ghuri also reconfigured the adjacent area into a souq with monumental gates known as the "Suq al-Nabulsi". He also tried to impose a more regular grid-like plan on the wider surrounding district. Along with the stone gates, this sort of complex resembled what in Ottoman cities was known as a "bedestan:" a central bazaar where the most precious goods were sold, which often had roofed streets and was protected by locked gates at night (and which was also equivalent in some ways to a "qaysariyya"). 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 major rival of the Egyptian Mamluk state and when Turkish merchants were probably increasingly prominent in Cairo.