Question: The first king of Portugal fought which Muslim inhabitants of the Maghreb?

Context paragraphs:
Afonso I of Portugal: Afonso I (1106/ 25 July 1109 /11116 December 1185), nicknamed "the Conqueror" (Portuguese: "O Conquistador" ), "the Founder" ("O Fundador" ) or "the Great" ("O Grande" ) by the Portuguese, and "El-Bortukali" [in Arabic البرتقالي] ("the Portuguese") and "Ibn-Arrink" [in Arabic ابن الرَّنك or ابن الرَنْق] ("son of Henry", "Henriques") by the Moors whom he fought, was the first King of Portugal.  He achieved the independence of the southern part of the Kingdom of Galicia, the County of Portugal, from Galicia's overlord, the King of León, in 1139, establishing a new kingdom and doubling its area with the "Reconquista", an objective that he pursued until his death, in 1185, after forty-six years of wars against the Moors.

Islam in São Tomé and Príncipe: São Tomé and Príncipe, with a total population of about 181,000, has about 5,500 Muslim inhabitants, about 3 percent of the population.  The majority (an estimated 80 percent) are Roman Catholics; São Tomé and Príncipe was for many years a colony of Portugal, which is overwhelmingly Catholic.

Muslim settlement of Lucera: The Muslim settlement of Lucera was the result of the decision of Holy Roman Emperor Frederick II of the Hohenstaufen dynasty (1194–1250) to move 20,000 Sicilian Muslims to Lucera, a settlement in Apulia in southern Italy.  The settlement thrived for about 75 years.  In 1300, it was sacked by the Christian forces of Charles II of Naples and its Muslim inhabitants were exiled or sold into slavery.

Siege of Medina (1053–54): The Siege of Medina was an unsuccessful Byzantine attack on the Muslim city of Medina (modern Mdina), Malta in 1053 or 1054.  The Muslim inhabitants of the city and their slaves managed to repel a superior Byzantine force, which retreated with heavy losses.  After the siege, the slaves who helped the Muslims against the invaders were freed, and the Byzantines never attempted to retake the island.

Moors: The term "Moors" refers primarily to the Muslim inhabitants of the Maghreb, the Iberian Peninsula, Sicily, and Malta during the Middle Ages.  The Moors initially were the Berber autochthones of the Maghreb.  The name was later also applied to Arabs.

Black Telescope: The black telescope is a black variant of telescope goldfish that has a characteristic pair of protruding eyes.  Black telescopes are commonly known as Blackamoors, black moors or just moors, a reference to the black North African Muslim inhabitants of Al-Andalus.

Abu Hafs Umar al-Iqritishi: Umar ibn Hafs ibn Shuayb ibn Isa al-Balluti, surnamed al-Ghaliz ("the Fat") and later al-Iqritishi ("the Cretan"), and usually known as Abu Hafs (أبو حفص , in Greek sources Ἀπόχαψις , Apohapsis), was a Muwallad corsair who was primarily active between 816 and 827.  After an unsuccessful uprising in Cordova, Spain in 818 against Emir Al-Hakam I the city's Muladi Muslim inhabitants were exiled.  Some settled in Fez (Morocco), while a second group, of almost 15,000 men plus women and children, headed for Alexandria in Egypt.  With the intention of taking advantage of local unrest, the latter group of rebels selected Abu Hafs as their leader.  As leader, Abu Hafs led the group which took control of Alexandria in 816.

Khiyam al-Walid: Khiyam al-Walid (Arabic: خيام الوليد‎ ‎ ) was a Palestinian Arab village in the Safad Subdistrict located 25.5 km northeast of Safad along the Syrian border.  It was on situated on a hill 150 m above sea level on the eastern edge of the Hula Valley.  In 1945, there were 280 predominantly Muslim inhabitants.  It was depopulated during the 1948 Palestine War.

Manûrqa: Manûrqa (Arabic: منورقة‎ ‎ ) was the Arabicized name given to the island of Menorca by the Muslims from its annexation to the Caliphate of Cordoba by 'Isâm al-Khawlânî in 903 until the rule of the last Muslim ra'îs, Abû 'Umar ibn Sa'îd in 1287.  The only urban centre of the island was "Madînat al Jazîra" or "al Manûrqa" (modern Ciutadella).  Most of the population lived in small farm communities organized under a tribal structure.  Once the island was captured by King Alfonso III of Aragon, most of its Muslim inhabitants were enslaved and sold in the slave markets of Ibiza, Valencia and Barcelona.  Only one hundred Muslims were allowed to remain on the island.

Abasan al-Saghira: Abasan al-Saghira (Arabic: عبسان الصغيرة‎ ‎ ) is a Palestinian agricultural town located 2 km southeast of Khan Yunis in the Khan Yunis Governorate in the southern Gaza Strip.  According to the Palestinian Central Bureau of Statistics, Abasan al-Saghira had a population of 5,650 Muslim inhabitants.

Supporting paragraphs: Afonso I of Portugal Moors
Answer: Moors