during
Ahmad al-Mansur's rule. The Badi Palace, enclosing four pools and gardens, is visible in the upper right. The Saadian palaces formed a complex built inside the vast kasbah (citadel) on the south side of the city, originally laid out during the Almohad period under Caliph
Ya'qub al-Mansur. Some of the various elements of the Saadian palaces may have already been built under Abdallah al-Ghalib, while Ahmad al-Mansur added to them and embellished them. The complex was entered via a "Grand
Mechouar", a vast ceremonial square or courtyard, to the south of the Almohad-era
Kasbah Mosque. The main gate of the royal palace was situated here and led to a smaller mechouar from which a long passage ran east to give access to the palace's various components. On the south side of this passage were most of the functional annexes of the palace, including kitchens, warehouses, the
treasury, and
stables. On the north side of the passage was the vast reception palace, the El Badi proper, along with the private quarters of the sultan and his family, their bathhouses (
hammams), a private mosque, and the
mint. Finally, beyond these structures, occupying the whole eastern side of the kasbah, were a number of
pleasure gardens. These included the Crystal Garden (
az-zujaj), the royal garden known as
al-Mustaha ("the Desired") with a grand water basin, and the
Qasr Garden or inner garden for al-Mansur's private quarters. Ahmad al-Mansur also renovated the vast
Agdal Gardens to the south of the kasbah, originally created by the Almohads. The entire palace and citadel complex was surrounded by fortified walls, as in Almohad times and as still seen today. One curious feature inside the palace complex was a tall tower which is prominently depicted in descriptions of Marrakesh during the Saadian period but which was missing in the later
Alawi era. Of uncertain origin, this structure may have been a private observation tower dating from either the Almohad or Saadian dynasty, used for the enjoyment of the sultan and similar to smaller elevated lookouts present in some aristocratic mansions in Marrakesh and
Fes. (citadel and palaces), seen from the east, by
Adriaen Matham, 1640. Among other features, the image shows a tall tower that once stood in the Saadian palaces, which later disappeared and whose origin has been debated among scholars.|alt=|center|500x500px == Architecture of El Badi ==