Rubuta ci gaba don wannan sakin layi - Wasu daga cikin hulɗar farko na Mohammed V tare da 'yan ƙasa sun zo ne a lokacin rikicin da ake kira "Berber Dahir". Daga cikin sauran abubuwa a wannan lokacin, sultan ya karbi tawagar daga Fez wanda ya gabatar da jerin korafe-korafe game da sabuwar manufar Faransa, kuma ya yi tattaunawa da Allal al-Fassi inda a bayyane yake ya bayyana cewa an yaudare shi da zama na Faransa lokacin da ya sanya hannu kuma ya yi alƙawarin ba zai ba da ƙarin haƙƙoƙin ƙasarsa ba. Sultan ya guji yin hulɗa a fili tare da ƙungiyar 'yan ƙasa a cikin shekarun 1930, amma duk da haka ya yi tsayayya da ƙoƙarin Faransa don sauya sharuɗɗan kariya a lokacin shekarun tsakanin. Ya sake tabbatar da amincin Morocco ga Faransa a 1939, a farkon yakin duniya na biyu. Bayan faduwar Faransa ga Jamusawa da zuwan mulkin Vichy, duk da haka, sultan ya ƙara tsara nasa tafarkin, ya sami nasarar tura wasu manufofin gyare-gyare da suka shafi ilimi, duk da cewa mulkin Vichy ya ƙarfafa shi ya yi tafiye-tafiye da yawa zuwa ƙasashen waje don ƙarfafa halattawarsa da na tsarin mulkin mallaka. A shekara ta 1942 sojojin Allied sun sauka a gabar tekun Atlantika na Morocco
a matsayin wani bangare na mamayewarsu na Arewacin Afirka a kan mamayar Axis. Wannan canji mai mahimmanci ya kuma ba da damar sarkin Musulmi ya fi ƙarfin siyasa, kuma a lokacin taron Anfa a 1943, wanda shugabannin Allied suka halarta, an bar Mohammed V shi kaɗai a wani lokaci tare da Shugaba Roosevelt, wanda ya nuna goyon baya ga 'yancin kai na Maroko bayan yakin. Wannan gamuwa ita ce karo na farko da sultan ya yi hulda da wani shugaban kasa ba tare da halartar jami'an Faransa ba. A cikin kaka na wannan shekarar, sultan ya karfafa kafa Jam'iyyar Istiqlal ("Independence") da kuma tsara Yarjejeniyar 'Yancin kai wanda ke kira ga tsarin mulki na tsarin mulki tare da cibiyoyin dimokiradiyya.