The first component to be built was the Dar al-Kebira, the private palace of the sultan and his family, located on the site of the earlier kasbah of the city. It was finished in 1679.[1][21]:266 The kasbah's main mosque, now known as the Lalla Aouda Mosque, was also renovated or rebuilt, possibly around 1677.[3][4] Moulay Isma'il chose the nearby tomb of a local saint, Sidi Abd ar-Rahman al-Majdoub, as the site of a new mausoleum that he founded for himself.[5][16] New structures were added or expanded to the kasbah throughout his reign. One of the last constructions before his death, carried out between 1721 and 1725, was the Heri al-Mansur, a palace on the far southern edge of the kasbah (still partly preserved today) which included vast stables.[16] The monumental gate known as Bab Mansur al-'Alj (or Bab Mansour), still preserved today overlooking Place al-Hedim, was only finished in 1732 by his son Moulay Abdallah.[21] His other son and brief successor, Moulay Ahmad ad-Dhahabi, carried out modifications on Isma'il's mausoleum during his two brief reigns (in 1727–28 and 1728–29) and was himself buried here in 1729.[8]