 In 1199–1200, the ceiling and pavings were renewed by the ruling Ayyubids.The Christians re-used the place in 1240–1244, before it reverted to Muslim use.The structure was renovated by the Mamluk sultan Baybars (r. 1260–1277).