The tower, like the Giralda of Seville in Al Andalus (modern day Spain), was modeled on the minaret of the Koutoubia Mosque in Marrakesh, but also drew influence from the ancient Egyptian Lighthouse of Alexandria for its height and method of ascendancy, a series of ramps. Yaqub al-Mansur conducted other works in Rabat, most notably the construction of new city walls and gates and additions to the Kasbah of the Udayas. Despite all this work and expense, the Almohad capital remained at Marrakesh and was never actually moved to Rabat.