Since the reign of sultan Mohammed ben Abdallah, the Alaouite sultans and kings have maintained a palace in Rabat.[1] The current building was built in 1864, to replace the older palace, by Mohammed IV. Morocco had been formerly under the control of the French since 1912, and they wanted the sultan to be largely stationed in one place, near their own administrative headquarters, in order to show his acceptance of the new regime.