علي بن يوسف
The Almoravid Qubba is situated next to the Marrakech Museum and around 40 meters south of the Mosque of Ben Youssef. It is the only surviving example of Almoravid architecture in Marrakesh. It was built in either 1117 or, more likely, in 1125, by the Almoravid amir Ali ibn Yusuf. Most scholars today believe that it belonged to the nearby Ben Youssef Mosque, the main mosque of the city at the time, and that it was a pavilion used for ritual ablutions before prayer. The mosque itself, also originally built by Ali ibn Yusuf, has since been completely rebuilt in more recent centuries. This type of structure for providing water near a mosque was also known as a "mida'a" (; "ablutions facility") and is found in later mosques in Marrakech.