is believed to be the Sahrij al-Bgar (or Sahrij al-Baqar), located outside and southeast of the Menara Gardens today, a short distance west of Bab Ighli and the Agdal Gardens. Its name, meaning "basin of the cows", may be a reference to either a nearby cattle market at the time or to the raising of bulls for bullfighting which took place here under the later Caliph al-Mustansir. The Sahrij al-Bgar is no longer in use and lies empty today, but was probably part of the same garden estate at the time. This vast estate was in turn enclosed by a 6-mile-long wall (absent today). The Menara's location to the west of the city walls is also consistent with the fact that Abd al-Mu'min still used the former Almoravid palace, the Ksar al-Hajjar (located next to the present-day site of the Kutubiyya Mosque), as his residence. The gardens are also perfectly aligned with Bab al-Makhzen, the western gate of the city, near the palace, which Abd al-Mu'min would have likely used to go in and out of the city. The later palaces of the Kasbah, founded by the Almohads and to which the Agdal Gardens are connected today, were not yet built. The Agdal Gardens to the south of the city, in turn, were traditionally believed to date from Abd al-Mu'min's time as well but have been more conclusively dated to the reign of his successor Abu Ya'qub Yusuf. In early sources the garden and its location was also called Shuntululya. The gardens were likely designed by an engineer from Malaga (Al-Andalus) named Hajj al-Ya'ish, who was also responsible for designing other mechanical projects under Abd al-Mu'min such as the automated maqsura and minbar of the Kutubiyya Mosque. One historical source, the Ḥulal al-Mawshiyya, describes how the estate's second water basin (the Sahrij al-Bgar) was used at one point to train the ḥuffāẓ (singular ḥāfiẓ; meaning "Qur'an reader") how to swim. The gardens and the city underwent a period of decline after the fall of the Almohads in the 13th century, when the Marinids moved the capital to Fez. When the Saadian dynasty made Marrakesh the capital again in the 16th century, they also restored the gardens of the city. It was the Saadians who initially built a pleasure pavilion overlooking the water reservoir. However, the gardens owe their current condition to the reigns of the Alaouite sultans Moulay Abd ar-Rahman