In Morocco, there was no prior organization to ensure public health , except in Tangier , and the Spanish tried to remedy this deficiency, creating in 1916 the Health Inspectorate , within the Office of Indigenous Affairs . The Spanish had to overcome the distrust that Moroccans felt towards their healers and home remedies, carrying out large vaccination campaigns that contributed to the prestige of the protecting country. Along with health action, culture was the other pending subject for Moroccans, since teaching was closely linked to religion and consisted of memorizing the Koran. Spain entrusted the task of educating the population to the Delegation of Indigenous Affairs, which depended on a Board of Education that was created on April 3 1913 . This Board was born with the purpose of training the personnel who would be dedicated to this task and as an instrument to learn about geography ,literature ,history and the Moroccan law . To this end, a Center for Moroccan Studies was organized in the Free Institute of Diplomatic and Consular Careers and Arabic chairs were created in some business schools and an Arabic board was created in the Board for the Extension of Studies .