التهامي الكلاوي
Muhammad IV and his successors Hassan I and Abd al-Aziz moved the court and capital back to Fez, demoting Marrakesh once again to a regional capital under a family "khalifa". Nonetheless, Marrakesh was still visited periodically, and numerous new buildings were erected, most notably the late 19th-century palaces of various leading courtiers and officials. The Bahia Palace ("the Brilliant") was built in the 1860s as the residence of Si Musa, a palace slave and grand vizier of Muhammad IV and Hassan I. It was used as a residence by Si Musa's son and successor Ahmed ibn Musa ("Ba Ahmed"), who served as the grand vizier of Abd al-Aziz. Other Alawite palaces of this era include the Dar Si Said (now the Museum of Moroccan Art), built by Ba Ahmed's brother, Si Said ibn Musa, the Dar Menebbi (now the Musée de Marrakech) built by the Tangier noble and war minister Mehdi el-Menebbi and the early 20th-century palace of Dar el Glaoui, residence of the pasha Thami El Glaoui. The late 19th century also saw the erection of many new religious buildings, such as the Sufi shrine of Sidi Abd al-Aziz and the mosques of Sidi Ishaq, Darb al-Badi, Darb al-Shtuka, Dar al-Makzhen and Ali ibn Sharif.