family. However, one by one these expelled Muhammad ibn Lubb and turned to the Tujibids for leadership, leaving him only Ayera in 928, when Jimeno Garcés, the new king of Navarre, intervened on his behalf in opposition to Hasim ibn Muhammad al-Tujibi. The next year, Muhammad fell victim to an ambush and was killed by his brother-in-law, a son of Raymond of Pallars. Legacy The death of Muhammad ibn Lubb marked the end of the Banu Qasi in the Ebro valley. Their rivals the Tujibids would follow their model, making an independent peace with Leon in 937, a move that resulted in a punitive expedition from the Caliph similar to those of prior years against the Banu Qasi. The Tujibids would eventually establish a full-fledged Taifa kingdom centered at Zaragoza. Two other Taifa crowns were ruled by men with names reminiscent of the Banu Qasi and are claimed as dynastic members, although there is no evidence of any actual genealogical connection. A small Taifa state at Alpuente was founded by Abd Allah ibn Qasim. He was of a convert family that claimed a tribal affiliation with the Yamanī/Fíhrī. In 1144, another Christian convert and Sufi mystic from Silves, Abu-l-Qasim Ahmad ibn al-Husayn ibn Qasi, called Ibn Qasi, rose and established a Taifa state at Mértola, expanding it to much of southern Portugal, and he encouraged the successful move of the Almohads (to whom he would submit) against Seville. They fell out and Ibn Qasi was assassinated in 1151 by his own men.; Leadership of the Banu Qasi The following men are the documented leaders of the Banu Qasi (entries in italics are of uncertain affiliation to the family): Cassius, fl. 714 Abu Tawr, Wali of Huesca, fl. 778, perhaps son of Cassius Musa ibn Furtun, grandson of Cassius Mutarrif ibn Musa, assassinated 799, perhaps son of Musa ibn Furtun Furtun ibn Musa, killed in rebellion 801, perhaps son of Musa ibn Furtun, else identical to him Musa ibn Musa, d. 862, son of Musa ibn Furtun Lubb ibn Musa, d. 875, son of Musa ibn Musa Isma'il ibn Musa, co-leader to 882, d. 889, son of Musa ibn Musa Muhammad ibn Lubb, co-leader to 882, then sole leader, d. 899, son of Lubb ibn Musa Lubb ibn Muhammad, d. 907, son of Muhammad ibn Lubb Abd Allah ibn Muhammad, d. 915, son of Muhammad ibn Lubb (succession struggle between Mutarrif