The Banu Sumadih family were a branch of the Banu Tujib of the Upper March. A former military leader under Almanzor, Muhammad ibn Ahmad ibn Sumadih, was ruling as governor of Huesca during the reign of his distant cousin, al-Mundir I (ruled 1018–1021) of the Taifa of Zaragoza, but ran afoul of his emir and al-Mundir attacked him and forced him into exile in the Taifa of Valencia. His son Ma'n ibn Muhammad was appointed governor of Almería by the Valencia emir, 'Abd al-'Aziz ibn Amir, in 1038, but in 1041 elevated Almería into an independent taifa. His dynasty ruled for three generations, the last Banu Sumadih emir fled the Almoravids in 1091, eventually making his way to the Hammadid king Al-Mansur ibn Nasir, who gave him command of Dellys in Algeria.
The Banu Sumadih dynasty rulers were: