Task: Question Answering
Input (English): Context: Al-Andalus (trans.   Berber: "Andalus"), also known as Muslim Spain or Islamic Iberia, was a medieval Muslim territory and cultural domain occupying at its peak most of what are today Spain and Portugal. At its greatest geographical extent in the eighth century, southern FranceSeptimaniawas briefly under its control. The name more generally describes parts of the Iberian Peninsula governed by Muslims (given the generic name of Moors) at various times between 711 and 1492, though the boundaries changed constantly as the Christian Reconquista progressed., The Almoravids ( Berber :  Imaben , Arabic :   Al - Murbin ) were a Berber dynasty of Morocco , who formed an empire in the 11th century that stretched over the western Maghreb and Al - Andalus . Founded by Abdallah ibn Yasin , their capital was Marrakesh , a city they founded in 1062 . The dynasty originated among the Lamtuna and the Gudala , nomadic Berber tribes of the Sahara , traversing the territory between the Draa , the Niger , and the Senegal rivers . The Almoravids were crucial in preventing the fall of Al - Andalus to the Iberian Christian kingdoms , when they decisively defeated a coalition of the Castilian and Aragonese armies at the Battle of Sagrajas in 1086 . This enabled them to control an empire that stretched 3,000 kilometers north to south . However , the rule of the dynasty was relatively short - lived . The Almoravids fell -- at the height of their power -- when they failed to quell the Masmuda - led rebellion initiated by Ibn Tumart . As a result , their last king Ishaq ibn Ali was killed in Marrakesh in April 1147 by the Almohads , who replaced them as a ruling dynasty both in Morocco and Al - Andalus ., The (Spanish and Portuguese for the "reconquest") is the period of history of the Iberian Peninsula spanning approximately 770 years between the Islamic conquest of Hispania in 710 and the fall of the last Islamic state in Iberia at Granada to the expanding Christian kingdoms in 1492. The " ended just before the European discovery of the Americasthe "New World"which ushered in the era of the Portuguese and Spanish colonial empires., A dynasty is a sequence of rulers from the same family, usually in the context of a feudal or monarchical system but sometimes also appearing in elective republics. The dynastic family or lineage may be known as a "house"; which may be styled "royal", "princely", "comital", etc., depending upon the chief or present title borne by its members. Historians periodize the histories of many sovereign states, such as Ancient Egypt, the Carolingian Empire and Imperial China, using a framework of successive dynasties. As such, the term "dynasty" may be used to delimit the era during which the family reigned and to describe events, trends, and artifacts of that period ("a Ming-dynasty vase"). The word "dynasty" itself is often dropped from such adjectival references ("a Ming vase")., A republic (from ) is a sovereign state, country, or government which is organized with a form of government in which power resides in elected individuals representing the citizen body and government leaders exercise power according to the rule of law. In modern times, the definition of a republic commonly refers to a government which excludes a monarch. Currently, 147 of the world's 206 sovereign states use the word "republic" as part of their official names; not all of these are republics in the sense of having elected governments, nor do all nations with elected governments use the word "republic" in their names., Septimania (  ) was the western region of the Roman province of Gallia Narbonensis that passed under the control of the Visigoths in 462, when Septimania was ceded to their king, Theodoric II. Under the Visigoths it was known as simply Gallia or Narbonensis. It corresponded roughly with the modern French region of Languedoc-Roussillon. It passed briefly to the Emirate of Córdoba in the eighth century before its conquest by the Franks, who by the end of the ninth century termed it Gothia or the Gothic March ("Marca Gothica")., A monarch is the sovereign head of state in a monarchy. A monarch may exercise the highest authority and power in the state, or others may wield that power on behalf of the monarch. Typically a monarch either personally inherits the lawful right to exercise the state's sovereign rights (often referred to as "the throne" or "the crown") or is selected by an established process from a family or cohort eligible to provide the nation's monarch. Alternatively, an individual may become monarch by conquest, acclamation or a combination of means. A monarch usually reigns for life or until abdication. , Tunisia ('; ), officially the Republic of Tunisia (') is the northernmost country in Africa, covering . Its northernmost point, Cape Angela, is the northernmost point on the African continent. It is bordered by Algeria to the west and southwest, Libya to the southeast, and the Mediterranean Sea to the north and east. Tunisia's population was estimated to be just under 11 million in 2014. Tunisia's name is derived from its capital city, Tunis, which is located on Tunisia's northeast coast., The Carolingian Empire (800888) was a large empire in western and central Europe during the early Middle Ages. It was ruled by the Carolingian dynasty, which had ruled as kings of the Franks since 751 and as kings of the Lombards of Italy from 774. In 800, the Frankish king Charlemagne was crowned emperor in Rome by Pope Leo III in an effort to revive the Roman Empire in the west during a vacancy in the throne of the eastern Roman Empire. After a civil war (84043) following the death of Emperor Louis the Pious, the empire was divided into autonomous kingdoms, with one king still recognised as emperor, but with little authority outside his own kingdom. The unity of the empire and the hereditary right of the Carolingians continued to be acknowledged., The Iberian Peninsula , also known as Iberia , is located in the southwest corner of Europe. The peninsula is principally divided between Portugal and Spain, comprising most of their territory. It also includes Andorra and a small part of France along the peninsula's northeastern edge, as well as Gibraltar on its south coast, a small peninsula which forms an overseas territory of the United Kingdom. With an area of approximately , it is the second largest European peninsula, after the Scandinavian., Egypt (; ', , "Kimi"), officially the Arab Republic of Egypt, is a transcontinental country spanning the northeast corner of Africa and southwest corner of Asia by a land bridge formed by the Sinai Peninsula. Egypt is a Mediterranean country bordered by the Gaza Strip and Israel to the northeast, the Gulf of Aqaba to the east, the Red Sea to the east and south, Sudan to the south, and Libya to the west. Across the Gulf of Aqaba lies Jordan, and across from the Sinai Peninsula lies Saudi Arabia, although Jordan and Saudi Arabia do not share a land border with Egypt. It is the world's only contiguous Afrasian nation., Portugal (Portuguese: ), officially the Portuguese Republic (Portuguese: ), is a country on the Iberian Peninsula in Southwestern Europe. It is the westernmost country of mainland Europe. To the west and south it is bordered by the Atlantic Ocean and to the east and north by Spain. The PortugalSpain border is long and considered the longest uninterrupted border within the European Union. The republic also includes the Atlantic archipelagos of the Azores and Madeira, both autonomous regions with their own regional governments., The Maghreb (or ; literally "sunset"; ', "the Arab West" previously known as Barbary Coast, derived from Berber), or the Greater Maghreb ("al-Maghrib al-Kabr"), is usually defined as much or most of the region of western North Africa or Northwest Africa, west of Egypt. The traditional definition as the region including the Atlas Mountains and the coastal plains of Morocco, Algeria, Tunisia, and Libya, was later superseded, especially following the 1989 formation of the Arab Maghreb Union (  ), by the inclusion of Mauritania and of the disputed territory of Western Sahara (mostly controlled by Morocco). During the Al-Andalus era in Spain (7111492), the Maghreb's inhabitants, Maghrebis, were known as "Moors"; the Muslim areas of Spain in those times were usually included in contemporary definitions of the Maghrebhence the use of "Moorish" or "Moors" to describe the Muslim inhabitants of Spain in Western sources., The Lamtuna are a nomadic Berber tribe belonging to the Sanhaja (Zenaga) confederation, who traditionally inhabited areas from Sous to Adrar Plateau. During the Almoravid period, many Lamtunas emigrated northwards. The Sahrawi Tajakant tribe are of the most recognizable offshoots of the Lamtunas. They inhabit the area between Morocco and Western Sahara., Mauritania ('; or  Soninke: "Murutaane"; Pulaar: "Moritani"), officially the Islamic Republic of Mauritania, is a country in the Maghreb region of western Africa. It is the eleventh largest country in Africa and is bordered by the Atlantic Ocean to the west, Morocco and the remnants of Western Sahara in the north, Algeria in the northeast, Mali in the east and southeast, and Senegal in the southwest., Algeria (' "Dzayer"), officially the People's Democratic Republic of Algeria, is a sovereign state in North Africa on the Mediterranean coast. Its capital and most populous city is Algiers, located in the country's far north. With an area of , Algeria is the tenth-largest country in the world, and the largest in Africa. Algeria is bordered to the northeast by Tunisia, to the east by Libya, to the west by Morocco, to the southwest by the Western Saharan territory, Mauritania, and Mali, to the southeast by Niger, and to the north by the Mediterranean Sea. The country is a semi-presidential republic consisting of 48 provinces and 1,541 communes (counties). Abdelaziz Bouteflika has been President since 1999., Subject: almoravid dynasty, Relation: basic_form_of_government, Options: (A) confederation (B) emirate (C) empire (D) islamic republic (E) islamic state (F) monarchy (G) overseas territory (H) republic
Output (English): monarchy