The Hafidiya (; 1907-1908) was a coup d'état in Morocco in which Abd al-Hafid seized power from his brother Abdelaziz. Abd al-Hafid started his movement in Marrakesh in the aftermath of the Algeciras Conference and the French occupation of Oujda and Casablanca, gaining the support of the southern Berbers. The "Ulama" of Fes only supported Abdelhafid with an unprecedented conditioned "Bay'ah", or pledge of allegiance.