Kingdom of Nekor


The Kingdom of Nekor was an emirate centered in the Rif area of present-day Morocco. Its capital was initially located at Temsaman, and then moved to Nekor. The dynasty was founded in 710 CE by Salih I ibn Mansur through a Caliphate grant. Under his guidance, the local Berber tribes adopted Islam, but later deposed him in favor of one az-Zaydi from the Nafza tribe. They subsequently changed their mind and reappointed Ibn Mansur. His dynasty, the Banū Sālih, thereafter ruled the region until 1019.
In 859, the kingdom became subject to a 62 ship-strong group of Vikings who defeated a Moorish force in Nekor that had attempted to interfere with their plunderings in the area. After staying for eight days in Morocco, the Vikings went back to Spain and continued up the east coast.
The Nekor kingdom comprised part of the Moroccan Rif and included the tribes of Zouagha and Djeraoua of Ibn Abī l-ʻAys, about five days' journey from Nekor. This area was flanked by the territory of the Matmata, Kebdana, Mernissa, Ghassasa of Mount Herek, and Quluʻ Jarra belonging to the Banū Urtendi. On the west, it extended to the Banū Marwan of Ghomara and the Banū Humayd and bordered the Mestassa and Sanhaja. Behind these lay the Awraba, the band of Ferhun, the Banū Walīd, the Zenata, the Banū Irnian and the Banū Merasen of the band of Qāsim, Lord of Sa. In the north, it was bounded by the sea, some five miles from Nekor.

Banū Salih rulers

Thenceforth, the kingdom remained in his line until the Azdâji emir Ya'la ibn Futuh conquered it in 1019 and expelled the family.
All dates are converted from Hijri, and may be up to a year out. This is largely based on Ibn Khaldun, whose account is itself based on al-Bakri.