Following preliminary investigations, the Aga Khan Trust for Culture (AKTC) began restoration works of the Ayubbid wall in 2000. In 2006 the AKTC funded a team from CyArk and the University of Ferrara's Research Department Centre for the Development of Integrated Automatic Procedures for the Restoration of Monuments (DIAPReM) to document the gate with laser scanning. The 3D digital survey was integrated with a topographical survey of the surrounding al-Azhar park.