The imams based their legitimacy on descent from the Prophet Muhammad, mostly via the prominent Zaydiyya theologian al-Qasim ar-Rassi (d.
Yemen throughout most of that period was only rarely a unified political entity; in fact, what was included within its frontiers varied widely, and it has not been governed consistently or uniformly by any single set of rulers except for brief periods.