# Banu Ghaniya Wars in Tripolitania (c. 1188)

URL: https://allhistories.com/countries/libya/timeline/1188-banu-ghaniya-wars-in-tripolitania
Location: Nafusa Mountains, Libya
Themes: battle

After his brother Ali died around 1188, Yahya ibn Ishaq ibn Ghaniya became leader of the Banu Ghaniya's war in North Africa. Commanding Almoravid veterans, Bedouin Arabs and sometimes the men of Qaraqush, he made Tripolitania and southern Tunisia his base and at times controlled Tripoli and much of Ifriqiya, capturing Mahdia and even Tunis in the early 1200s. The Almohad caliph Muhammad al-Nasir responded with a major campaign in 1205–1207, retaking Mahdia and Tunis. He left as governor of Ifriqiya the Almohad sheikh Abd al-Wahid ibn Abi Hafs, who defeated Yahya and his Bedouin allies in battle around 1209–1210 in the region of the Jabal Nafusa, recovering much of Tripolitania. Yahya nonetheless survived, raiding from the desert, and was finally driven out of Ifriqiya in 1226; he died between 1233 and 1237. The wars devastated Tripolitania's towns and agriculture, encouraging further Bedouin dominance of the countryside. They also made the Hafsid governors of Ifriqiya indispensable to the Almohads, so that Abd al-Wahid's descendants were able to found an independent dynasty whose authority would include Tripoli. At this point in the timeline (c. 1188–1226), the Almohad Caliph was Abu Yusuf Ya'qub al-Mansur (July 1184 – 23 January 1199).

## Why it matters
The Banu Ghaniya wars ravaged Tripolitania and laid the foundations of Hafsid power in the eastern Maghreb.

Ruler at the Time: [Abu Yusuf Ya'qub al-Mansur](https://allhistories.com/countries/libya/rulers/abu-yusuf-ya-qub-al-mansur)

## Sources
- [Wikipedia — Banu Ghaniya](https://en.wikipedia.org/wiki/Banu_Ghaniya)
- [Wikipedia — Muhammad al-Nasir](https://en.wikipedia.org/wiki/Muhammad_al-Nasir)
- [Wikipedia — Banu Hilal, Almohads And Hafsids (period overview)](https://en.wikipedia.org/wiki/Banu_Hilal)

