Turan Shah conquered Zabid from the Mahdids in May 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.