Moroccan literature is the literature produced by people who lived in or were culturally connected to Morocco and the historical states that have existed partially or entirely within the geographical area that is now Morocco. Apart from the various forms of oral literature, the written literature of Morocco encompasses various genres, including poetry, prose, theater, and nonfiction like religious literature. Moroccan literature was and is mainly written in Arabic, however it was also written at a lesser extent in Berber languages, Hebrew, French, and Spanish. Through translations into English and other languages, Moroccan literature originally written in Arabic or one of the other native languages has become accessible to readers worldwide.

Most of what is known as Moroccan literature was created since the arrival of Islam in the 8th century, before which native Berber communities primarily had oral literary traditions.

Moroccan literature

Classical antiquity

Morocco has been associated with Phoenician mythology, as a temple to Melqart was found in the vicinity of Lixus.

Moroccan literature

Morocco also played a part in the Greco-Roman Mythology. Atlas is associated with the Atlas Mountains and is said to have been the first king of Mauretania. Also associated with Morocco is Hercules, who was given the 12 impossible tasks including stealing "golden apples" from the garden of the Hesperides, purported to have been in or around Lixus.

Moroccan literature

Juba II, King of Mauretania, was a man of letters who authored works in Latin and Greek. Pliny the Elder mentioned him in his Natural History.

Little is known of the literary production in the time of the Exarchate of Africa.

Mauro-Andalusi

According to Abdallah Guennoun's an-Nubugh ul-Maghrebi fi l-Adab il-Arabi ( Moroccan Excellence in Arabic Literature), Moroccan literature in Arabic can be traced back to a Friday sermon given by Tariq ibn Ziyad at the time of the conquest of Iberia. For part of its history, Moroccan literature and literature in al-Andalus can be considered as one, since Morocco and al-Andalus were united under the Almoravid and Almohad empires. Additionally, a number of Andalusi writers went to Morocco for different reasons; some, such as Al-Mu'tamid ibn Abbad, Maimonides, Ibn al-Khatib, and Leo Africanus were forced to leave, while others, such as Ibn Rushd, went in search of opportunity.

Yahya ibn Yahya al-Laythi, a Muslim scholar of Masmuda Berber ancestry and a grandson of one of the conquerors of al-Andalus, was responsible for spreading Maliki jurisprudence in al-Andalus and the Maghreb and is considered the most important transmitter of Malik ibn Anas's Muwatta (compilation of Hadith).

Idrissid Period

Sebta, Tangier, Basra (a settlement founded by the Idrissids near al-Qasar al-Kebir), and Asilah were important cultural centers during the Idrissid period.

Barghwata

Al-Bakri mentions in his Book of Roads and Kingdoms that Salih ibn Tarif, king of the Barghawata, professed to be a prophet, and claimed that a new Quran was revealed to him. Ibn Khaldun also mentions the "Quran of Salih" in Kitāb al-ʿIbar, writing that it contained "surahs" named after prophets such as Adam, Noah, and Moses, as well as after animals such as the rooster, the camel, and the elephant.

University of al-Qarawiyyin

Fatima al-Fihri founded al-Qarawiyiin University in 859. Particularly from the beginning of the 12th century, the University of al-Qarawiyyin in Fes played an important role in the development of Moroccan literature, welcoming scholars and writers from throughout the Maghreb, al-Andalus, and the Mediterranean Basin. Among the scholars who studied and taught there were Ibn Khaldoun, Ibn al-Khatib, Al-Bannani, al-Bitruji, Ibn Hirzihim (Sidi Harazim) and Al-Wazzan (Leo Africanus) as well as the Jewish theologian Maimonides and the Catholic Pope Sylvester II. The writings of Sufi leaders have played an important role in literary and intellectual life in Morocco from this early period (e.g. Abu-l-Hassan ash-Shadhili and al-Jazouli) until now (e.g. Muhammad ibn al-Habib).

Judeo-Moroccan literature

An early example of Judeo-Moroccan literature is the 9th century Risalah of Judah ibn Kuraish to the Jews of Fes, written in Judeo-Arabic with Hebrew script.