 The Ayyubid period in Jerusalem following its conquest by Saladin was marked by a huge investment in the construction of houses , markets , public bathes , and pilgrim hostels . Numerous works were undertaken at the Temple Mount . Saladin ordered all the inner walls and pillars of the Dome of the Rock to be covered in marble and he initiated the renovation of the mosaics on the dome 's drum . The mihrab of the al @-@ Aqsa Mosque was repaired and in 1217 , al @-@ Mu 'azzam Isa built the northern porch of the mosque with three gates . The Dome of the Ascension was also built and restoration work was done to the existing free @-@ standing domes of the Temple Mount . 
