Yemen
Ayyubid conquest (1171–1260)

Turan Shah conquered Zabid from the Mahdids in 1174, then marched toward Aden in June and captured it from the Zurayids. The Hamdanid sultans of Sana'a resisted the Ayyubid in 1175, and the Ayyubids did not manage to secure Sana'a until 1189. The Ayyubid rule was stable in southern and central Yemen, where they succeeded in eliminating the ministates of that region, while Ismaili and Zaidi tribesmen continued to hold out in several fortresses.

The Ayyubids failed to capture the Zaydis stronghold in northern Yemen. In 1191, Zaydis of Shibam Kawkaban rebelled and killed 700 Ayyubid soldiers. Imam Abdullah bin Hamza proclaimed the imamate in 1197 and fought al-Mu'izz Ismail, the Ayyubid Sultan of Yemen. Imam Abdullah was defeated at first but was able to conquer Sana'a and Dhamar in 1198, and al-Mu'izz Ismail was assassinated in 1202.

Abdullah bin Hamza carried on the struggle against the Ayyubid until his death in 1217. After his demise, the Zaidi community was split between two rival imams. The Zaydis were dispersed, and a truce was signed with the Ayyubid in 1219. The Ayyubid army was defeated in Dhamar in 1226. Ayyubid Sultan Mas'ud Yusuf left for Mecca in 1228, never to return. Other sources suggest that he was forced to leave for Egypt instead in 1223.
detectable_format:number_highlighted_sections[6]