Muslim conquest of the Levant
Over the cave stands a large rectangular enclosure dating from the Herodian era. During Byzantine rule of the region, a basilica was built on the site; the structure was converted into the Ibrahimi Mosque following the Muslim conquest of the Levant. By the 12th century, the mosque and its surrounding regions had fallen under crusader-state control, but were retaken in 1188 by the Ayyubid sultan Saladin, who again converted the structure into a mosque.