The first ruler was Jalaf Ibn Rashid (802), who settled with his clan in the village they named Midayar, modern Barbastro. The city castle (Barbastra) was the centre of the Muslim domain in the region.
Jalaf died before 862. In this year the government of Huesca was conferred on the Banu Qasi family. His son Abd Allah ibn Jalaf then ruled Barbitanya. In the 870s, he allied himself with rebel Isma'il ibn Musa ibn Qasi, to whom Abd Allah married his daughter. In retaliation, at the end of the decade Muhammad I of Córdoba entered Huesca and killed Abd Allah and all of his children, and took possession of the Banu Jalaf lands.
- Al-Udri: Tarsi al-ajbar wa-tanwi al-atar wa-l-bustan. Ed. by Fernando de La Granja: La marca superior en la obra de Al-Udri. Estudios de la Edad Media de la Corona de Aragón, VIII (1967), pp. 457-461.