Modern Moroccan literature began in the 1930s. Two main factors gave Morocco a pulse toward witnessing the birth of a modern literature. Morocco, as a French and Spanish protectorate left Moroccan intellectuals the opportunity to exchange and to produce literary works freely enjoying the contact of other Arabic literature and Europe. Three generations of writers especially shaped 20th century Moroccan literature. The first was the generation that lived and wrote during the Protectorate (1912–56), its most important representative being Mohammed Ben Brahim (1897–1955).