Jerusalem was a significant site of Mamluk architectural patronage. The frequent building activity in the city during this period is evidenced by the 90 remaining structures that date from the 13th to 15th centuries. The types of structures built included madrasas, libraries, hospitals, caravanserais, fountains (or sabils), and public baths. Much of the building activity was concentrated around the edges of the Temple Mount or Haram al-Sharif. Old gates to the site lost importance and new gates were built, while significant parts of the northern and western porticos along the edge of the Temple Mount plaza were built or rebuilt in this period. Tankiz, the Mamluk amir in charge of Syria during the reign of al-Nasir Muhammad, built a new market called ''Suq al-Qattatin'' (Cotton Market) in 1336–7, along with the gate known as ''Bab al-Qattanin'' (Cotton Gate), which gave access to the Temple Mount from this market. The late Mamluk sultan al-Ashraf Qaytbay also took interest in the city. He commissioned the building of the Madrasa al-Ashrafiyya, completed in 1482, and the nearby Sabil of Qaytbay, built shortly after in 1482; both were located on the Temple Mount. Qaytbay's monuments were the last major Mamluk constructions in the city.