عبد المؤمن بن علي
The last dynastic emir was Yahya ibn Abd al-Aziz. Yahya repulsed Bedouin incursions and subdued uprisings by Berber clans, but during his reign the Genoese also raided Bougie (1136) and the Kingdom of Sicily occupied the settlement of Djidjelli and destroyed a pleasure palace that had been built there. In 1144 and 1145, Yahya dispatched Hammadid forces to join the Almoravids in fighting the Berber Almohads, led by Almohad Caliph Abd al-Mu'min. In 1151–52, Abd al-Mu'min conquered Tlemcen and Oran (1152) and marched against the Hammadids. The Almohads took Algiers (1152) and then captured Bougie later the same year, crushing Hammadid forces at the gates of the city. This marked a major military triumph for Abd al-Mu'min. Yahya fled to Constantine but surrendered several months later. He died in comfortable exile in Salé, Morocco, in 1163. Abd al-Mu'min enslaved the women and children of Hammadid loyalists who had fought against him, but did not sack Bougie because the city had willingly surrendered.