|Parent house||Kingdom of Tlemcen|
|Founder||Yaghmurasen Ibn Zyan|
|Final ruler||Hassan ibn Abdallah II|
|Titles||Sultan of Tlemcen|
The Zayyanid dynasty (Arabic: ?, Ziy?ny?n) or Abd al-Wadids (Arabic: , B?nu ?abd ?l-W?d) was a Berber Zenatadynasty that ruled the Kingdom of Tlemcen, an area of northwestern Algeria, centered on Tlemcen. The territory stretched from Tlemcen to the Chelif bend and Algiers. At its zenith, the kingdom reached the Moulouya river to the west, Sijilmasa to the south, and the Soummam river to the east. The Zayyanid dynasty's rule lasted from 1235 to 1556.
On the collapse of the Almohad Caliphate's rule around 1236, the kingdom of Tlemcen became independent under the rule of the Zayyanids, and Yaghmurasen Ibn Zyan. Ibn Zyan was able to maintain control over the rival Berber groups, and when faced with the outside threat of the Marinids, he formed an alliance with the Sultan of Granada and the King of Castile, Alfonso X.
After ibn Zyan's death, the Marinid sultan besieged Tlemcen for eight years and finally captured it in 1337-48, with Abu al-Hasan 'Ali as the new ruler. After a period of self-rule, it was governed again by the Marinid dynasty from 1352-59 under Abu Inan Faris. The Marinids reoccupied it periodically, particularly in 1360 and 1370. In both cases, the Marinids found that they were unable to hold the region against local resistance. but these episodes appear to have marked the beginning of the end of the Zayyanid dynasty.
In the 15th century, expansion eastward was attempted, but proved disastrous, as consequences of these incursions they were so weakened that over the following two centuries, the Zayyanid kingdom was intermittently a vassal of Hafsid Ifriqiya, Marinid Morocco, or Aragon. When the Spanish took the city of Oran from the kingdom in 1509, continuous pressure from the Berbers prompted the Spanish to attempt a counterattack against the city of Tlemcen (1543), which was deemed by the Papacy to be a crusade. The Spanish failed to take the city in the first attack, although the strategic vulnerability of Tlemcen caused the kingdom's weight to shift toward the safer and more heavily fortified corsair base at Algiers.
The failure of this kingdom from ever being a formidable foe can be linked to a number of reasons. First, they had no geographical or cultural unity. They also constantly faced internal issues, and they did not have fixed frontiers, and finally most important was the fact that they depended on Arab nomads for their military.
Second Marinid conquest (1352-1359) (Marinid ruler was Abu Inan)
Civil War (1427-1429)
Saadi conquest (1543-1544)
Media related to Zayyanid dynasty at Wikimedia Commons