It underwent significant restoration and expansion under the Almohad caliph Muhammad al-Nasir (ruled 1199-1213), who, among other things, diverted a new source of water to it from a source 9 kilometres south of the city.