After the fall of Jerusalem in 1187 the ruined church and monastery were abandoned by the Christians, who resettled in Acre. During this time Salah ad-Din established the Mount of Olives as a waqf entrusted to two sheikhs, al-Salih Wali al-Din and Abu Hasan al-Hakari. This Waqf (Islamic trust) was registered in a document dated 20 October 1188. The chapel was converted to a mosque, and a mihrab installed in it. Because the vast majority of pilgrims to the site were Christian, as a gesture of compromise and goodwill Salah ad-Din ordered the construction, two years later, of a second mosque nearby for Muslim worship while Christians continued to visit the main chapel. Also around this time the complex was fortified with towers, walls, and guarded by watchman. The shrine and surrounding structures saw periods of non-use and disrepair over the next 300 years. By the 15th century the destroyed eastern section of the octagonal outer wall was separated from the rest by a dividing wall and was occupied by peasant houses and animal stables. Though still under the authority of the Islamic Waqf of Jerusalem, the edicule-turned-mosque is currently opened to visitors of all faiths, for a nominal fee.