The Ayyubids gained control of Sana'a in 1175 and united the various Yemeni tribal states, except for the northern mountains controlled by the Zaydi imams, into one entity.
Leta 1173 je Saladin, ajubidski sultan iz Egipta, poslal svojega brata Turan-Šaha na ekspedicijo, da bi osvojil Jemen.