I te marama o Mei 1907, i muri i te whakaekenga o Wīwī ki Oujda, i tonoa e ngā rangatira o te tonga, nā te rangatira o te iwi Glaoua, ko Si Elmadani El Glaoui, a Abd al-Hafid, he tuakana o Abdelaziz, me te kawana i Marrakesh, kia noho hei sultan, ā, i te 16 o Akuhata 1907, i muri i te whakaekenga me te noho o Casablanca
I whakapuakina a Abdelhafid hei rangatira i Marrakesh me nga tikanga katoa.