Yahya ibn Abd al-Aziz was the last ruler of the Hammadids from 1121 to 1152, when the dynasty's rule was ended by the Almohads.