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.[2]:246 The later palaces of the Kasbah, founded by the Almohads and to which the Agdal Gardens are connected today, were not yet built.