Musa ibn Abi al-Afiya

موسى بن أبي العافية

Unverified: died 938. Recorded by an automated pass and not yet confirmed by a source, so not used on timelines.

Nekour

Musa ibn Abi al-Afiya al-Miknasi, the greatest king of his branch; first an Idrisid client holding Tahert and the Middle Maghreb, then he proclaimed Ubaydallah al-Mahdi's da'wa, expelled Yahya ibn Idris from Fez and ruled the Maghreb for Qayrawan, beat the Idrisid al-Hajjam at Wadi al-Matahin between Taza and Fez — until the eunuch Maysur marched in 323 and exiled him to the Malwiyya desert; he returned, besieged Nekour, and remained chief of Miknasa as a Zirid client until the Almoravids destroyed his house.

DraftWritten with AI help from the sources it cites, and not yet read by a human editor.

Depth

At a glance

Roles
Ruler · military-commander
Era
Abbasid Fragmentation
Region
Maghreb

In space

Nekour

Map: Natural Earth, public domain · places and route from the graph

Overview

Musa ibn Abi al-Afiya al-Miknasi, whom Ibn Khaldun describes as the greatest of the kings of his clan. He first entered the service of the Idrisids, and Ibn Idris appointed him over Tahart and the central Maghrib. He then gave the call for Ubayd Allah al-Mahdi, drove Yahya ibn Idris out of Fez, and held the Maghrib in the name of Kairouan. 1

Wars

Ibn Khaldun says that he fought al-Hasan ibn Muhammad al-Idrisi al-Hajjam, and the outcome was his in the Wadi al-Matahin between Taza and Fez. Then Maysur the eunuch marched against him in 323 AH; he took refuge in a fortress and was expelled to the regions of Mluya and Watat. 1

He came back from the desert and took his governorships, besieged the city of Nakur, and the head of Miknasa remained loyal to the Banu Ziri until the line of his sons was ended at the hands of the Almoravids. 1

The dates of birth and death are not given, and the pages 1621–1623 of the Heliopolis edition are referred to without verifying the page for each sentence, so this needs an additional source.

Connections

Explore the connections

Ruler of
Qayrawan
Ruled over
Qayrawan
Traveled to
Nekour

People and things also explored

Great Mosque of Qayrawan· How Arabic spread after the conquests· The Arabisation of the Maghrib· Battle of al-Musalla· Battle of Al-Qarn (1160)· Battle of Fajj al-Naam (1318)· Battle of Kairouan (1053)· Battle of Kairouan (1348)

Sources

  1. Kitab al-Ibar of Ibn Khaldun
Cite this page

islam.museum contributors. “Musa ibn Abi al-Afiya”. islam.museum, https://islam.museum/en/person/musa-ibn-abi-al-afiya/. CC BY-SA 4.0. Last updated 2026-11-20.

Improve this page on GitHub · Report an error · Help complete it · JSON

Wing

People

Prophets, companions, scholars, rulers, scientists, poets, travelers: women and men who shaped the story.
Related

Great Mosque of Qayrawan

The Great Mosque of Qayrawan stands on the Great Market amid the markets; al-Muqaddasi saw it around 375 AH and counted it larger than Ibn Tulun's mosque, with marble columns and paving and lead gutters, and several named gates. The Encyclopaedia of Islam calls it the oldest religious building of the Muslim West and lists its works: renovation by Hassan ibn al-Nu'man, reconstruction by Yazid ibn Hatim in 157 AH, demolition and rebuilding by Ziyadat Allah I in 221 AH on the qibla line drawn by Uqba ibn Nafi, enlargement by Abu Ibrahim Ahmad in 248 AH, the present maqsura given by al-Mu'izz ibn Badis, and a last restoration in 1970-2.