The Mosque of Omar (Arabic: مسجد عمر بن الخطاب) in Jerusalem is located opposite the southern courtyard of the Church of the Holy Sepulchre in the Muristan. After the Siege of Jerusalem in 637 by the Rashidun army under the command of Abu Ubaidah ibn al-Jarrah, Patriarch Sophronius refused to surrender except to the Caliph Omar (579-644) himself. Omar traveled to Jerusalem and accepted the surrender. He then visited the Church of the Holy Sepulchre where Sophronius invited him to pray inside the Church, but Omar declined so as not to set a precedent and thereby endanger the Church's status as a Christian site. Instead he prayed outside in the courtyard, in a place where David was believed to have prayed.
The Mosque of Omar was built in its current shape by the Ayyubid Sultan Al-Afdal ibn Salah ad-Din in 1193 in memory of this event. It has a 15 metres (49 ft) high minaret that was built before 1465 and was renovated by Ottoman sultan Abdulmecid I (1839–1860).