The Yemeni Hamdanids were a series of three families descended from the Arab Banū Hamdān tribe, who ruled in northern Yemen between 1099 and 1174. They must not be confused with the Hamdanids who ruled in al-Jazira and northern Syria in 906-1004. They were expelled from power when the Ayyubids conquered Yemen in 1174.
Hamdanids (Yemen) Wikipedia
The first Hatimid line (Banū Ḥātim; r. 1099–1116)Hatim bin al-Ghashim al-Mughallasi (r. 1099–1109)
Abdallah bin Hatim (r. 1109–1111)
Ma'n bin Hatim (r. 1111–1116)
The Banu’l-Qubaib line (r. 1116–1139)Hisham bin al-Qubaib bin Rusah (r. 1116–1124)
al-Humas bin al-Qubaib (r. 1124–1132)
Hatim bin al-Humas (r. 1132–1139)
The second Hatimid line (r. 1139–1174)Hamid ad-Dawla Hatim bin Ahmad bin Imran (r. 1139–1161)
al-Wahid Ali bin Hatim (r. 1161–1174)
All the three lines (and definitely the third one) appear to have been descended from the Hamdan tribe, just like the Ismaili Sulayhid dynasty who ruled Yemen and were adherents of the Egyptian Fatimid caliphs. The Sulayhid capital was moved from San'a to Jibla in 1088, and a Hamdan tribesman called Imran bin al-Fadl was appointed governor of the city together with the king's uncle As'ad bin Shihab. When the Sulayhid da'i or leader Saba' bin Ahmad died in 1098, control over San'a passed to the powerful tribal leader Hatim bin al-Ghashim al-Mughallasi who took the title sultan. Hatim established the power of the Hamdanids together with his eldest son Muhammad. However, he soon found reason to kill his son, who was given to murdering beautiful young girls. When Hatim died in 1109, he was therefore succeeded by his second son Abdallah, who was poisoned in 1111. His younger brother Ma'n then came to power. Ma'n was deposed and imprisoned in 1116 by the qadi Ahmad, son of governor Imran, since he was too weak to uphold authority over the Hamdan sub-tribes. Hisham, al-Humas and Hatim (II), belonging to the al-Qubaib line of the Hamdanids, then maintained power until 1139. Under Hatim there was tribal discord and the people of San'a rose in revolt. The son of qadi Ahmad bin Imran, Hamid ad-Dawla Hatim, entered the city with 700 Hamdani horsemen and was established as sultan.
After the end of Sulayhid rule in Yemen, the country was split between a number of competing petty dynasties along tribal and religious lines. The Zaidiyyah imamate, extinct since 1066, was revived in the person of al-Mutawakkil Ahmad bin Sulayman. From his base im Sa'dah he marched against San'a in 1150 and defeated Hamid ad-Dawla Hatim, but was unable to secure the city. Hamid ad-Dawla was able to maintain his position until his death in 1161. His son and successor Ali bin Hatim was able to expand the power base of the dynasty in northern Yemen. Military victories alternated with defeats, but in 1173 he allied with the Zurayids of Aden and worsted the religiously deviant Mahdid regime. However, hardly had Ali bin Hatim returned to San'a when a new external threat appeared. The Ayyubid ruler in Egypt, Saladin sent his brother Turan Shah with an army to South Arabia in the same year. When the Ayyubids reached the outskirts of San'a, Ali bin Hatim fled to a mountain fortress, leaving San'a to be captured in August 1174. Thus ended the rule of Fatimid-affiliated dynasties in San'a. Turan Shah occupied Yemen and ruled there until 1181. Ali bin Hatim nevertheless continued to offer periodic resistance until 1197, and was able to hold San'a for long periods when there was no Ayyubid army around. In 1197 he offered his allegiance to the new Zaydiyyah imam al-Mansur Abdallah.