This resembles the arrangement of the double northern gate of the Qarawiyyin Mosque (named "Bab al-Ward" and "Bab al-Hafa"), whereby one gate featured a water channel which allowed visitors to wash their feet as they entered, while the other gate was a regular entrance.