The
Banu Tujibi were an Arab
dynasty that were appointed to govern
Calatayud in 872, and in 886 were given
Zaragoza. This they held as governors (sometimes only nominally, carrying out their own foreign policy) under the
Umayyads. The collapse of the
Caliphate of Córdoba allowed them to found the
Taifa of Zaragoza, which they ruled from 1018 until they were expelled by a rival dynasty, the
Banu Hud, in 1039.