Question: The Marinid dynasty, or Banu abd al-Haqq was a Sunni Muslim dynasty of Zenata Berber descent, an ethnolinguistic group indigenous to North Africa, that ruled which country, from the 13th to the 15th century?
Context: Abu Faris Abdelaziz ibn Abdarrahman al-Malzuzi al-Miknasi (born in Meknes, died 1298) is considered to be the greatest poet of the Marinid period.  He is also well known as an historian.  There is little known about his life, besides that he was the court poet of Abu Yahya ibn Abd al-Haqq.  Among his many poetical works is a long didactic poem about the history of prophets.  According to Ibn al-Khatib (the biographer of Ibn Abd al-Haqq) Al-Malzuzi mixed his Arabic with Zenata elements.  He himself was from the Berber Malzuza tribe of Tripolitania.  He died encarcerated, in 1297-1298. Berbers (Berber: "Mazices" / "Imaziɣen" / "Imazighen" singular: ⴰⵎⴰⵣⵉⵖ "Amaziɣ" / "Amazigh") are an ethnolinguistic group indigenous to North Africa.  They are distributed in an area stretching from the Atlantic Ocean to the Siwa Oasis in Egypt, and from the Mediterranean Sea to the Niger River.  Historically, they spoke Berber languages, which together form the Berber branch of the Afroasiatic family.  Since the Muslim conquest of North Africa in the seventh century, a large number of Berbers inhabiting the Maghreb (Tamazgha) have acquired different degrees of knowledge of varieties of the languages of North Africa.  After the colonization of North Africa by France, "the French government succeeded in integrating the French language in Algeria by making French the official national language and requiring all education to take place in French."  Foreign languages, mainly French and to some degree Spanish, inherited from former European colonial powers, are used by most educated Berbers in Algeria and Morocco in some formal contexts, such as higher education or business. The Marinid dynasty (Berber: "Imrinen", Arabic: "Marīniyūn") or Banu abd al-Haqq was a Sunni Muslim dynasty of Zenata Berber descent that ruled Morocco from the 13th to the 15th century. In 1033, following their conquest of the city from the Maghrawa tribe, the forces of Tamim, chief of the Zenata Berber Banu Ifran tribe, perpetrated a massacre of Jews in Fez in an anti-Jewish pogrom.  The city of Fez in Morocco had been contested between the Zenata Berber tribes of Miknasa, Maghrawa and Banu Ifran for the previous half century, in the aftermath of the fall of the Idrisid dynasty. The Marinid Walls of Ceuta (Spanish: "Murallas Meriníes de Ceuta") are a set of walls and towers located in Ceuta, Spain.  They were constructed in the 13th century during the Berber Marinid dynasty's domination of the region.  The walls were declared "Bien de Interés Cultural" in 1985. Abd al-Haqq I ibn Mihyu ibn Abi Bakr ibn Hamama (died 1217) was the first Marinid (or Banu abd al-Haqq) sheikh, leader and an eponym for that dynasty. The Ifranids, also called Banu Ifran, Ifran, or the children of the Ifran (Arabic: بنو يفرن‎ ‎ , "Banu Yifran"), were a Zenata Berber tribe prominent in the history of pre-Islamic and early Islamic North Africa. Banu al-Kanz (also known as Awlad Kanz or Kunuz) was a semi-nomadic Muslim dynasty of mixed Arab-Beja ancestry that ruled the border region between Upper Egypt and Nubia between the 10th and 15th centuries.  They were descended from the sons of sheikhs of the Arab Banu Rabi'ah tribe and princesses of the Beja Hadariba tribe.  They gained official control over the region of Aswan, Wadi Allaqi and the frontier zone in the early 11th century when their chief, Abu al-Makarim Hibatallah, captured a major rebel on behalf of the Fatimid authorities.  Abu al-Makarim was accorded the title "Kanz al-Dawla" (Treasure of the State) by Caliph al-Hakim and his successors inherited the title.  The Banu Kanz entered into conflict with the Ayyubids in 1174, during which they were defeated and forced to migrate southward into northern Nubia, where they helped accelerate the expansion of Islam in the mostly Christian region.  They eventually assumed control of the Nubian Kingdom of Makuria in the late 14th century, but by the early the 15th century, they were supplanted by the Hawwara tribesmen dispatched by the Mamluks to combat the Banu Kanz.  Their modern-day descendants are a Sudanese tribe known as the "Kunuz", who live in the far north of the country. The Wattasid dynasty (Berber: , "Iweṭṭasen"; Arabic: الوطاسيون‎ ‎ , "al-waṭṭāsīyūn") was a ruling dynasty of Morocco.  Like the Marinid dynasty, its rulers were of Zenata Berber descent.  The two families were related, and the Marinids recruited many viziers from the Wattasids.  These viziers assumed the powers of the Sultans, seizing control of the Marinid dynasty's realm when the last Marinid, Abu Muhammad Abd al-Haqq, who had massacred many of the Wattasids in 1459, was murdered during a popular revolt in Fez in 1465. The Khwarazmian dynasty (] ; also known as the Khwarezmid dynasty, the Anushtegin dynasty, the dynasty of Khwarazm Shahs, and other spelling variants; from (Persian: خوارزمشاهیان‎ , "Khwārazmshāhiyān " ‎ "Kings of Khwarezmia") was a Persianate Sunni Muslim dynasty of Turkic "mamluk" origin.  The dynasty ruled large parts of Central Asia and Iran during the High Middle Ages, in the approximate period of 1077 to 1231, first as vassals of the Seljuqs and Qara-Khitan, and later as independent rulers, up until the Mongol invasion of Khwarezmia in the 13th century.
Answer: Morocco