Lubb ibn Muhammad

These two went on a joint expedition to Barbitanya, where Musa was killed and Mutarrif captured by the wali of Huesca, Muhammad al-Tawil.

[1][2] From his base of Larida, Lubb ibn Muhammad fought constantly against Christian nobles from Aragon and Catalan counties, who were slowly expanding south and repopulating the extensive areas south of the Pyrenees, and frequent in Christian and Muslim raids and counter-raids ensued.

He also ordered the construction of the major mosque (Arabic: مسجد الجامع, Masjid al-Jāmiʿ) of Larida, on the grounds of the modern-day Seu Vella.

[1] In 897, Lubb attacked the county of Barcelona,[1] and his army mortally wounded the count Wilfred the Hairy, who died later on August 11 from his injuries, probably not too far away from the castle of Aura.

His forces then ravaged and plundered Pallars, killing some 700 people and taking about 1000 captives, among them the count's own son, Isarn.

The Ḥiṣn ( Arabic : حصن ) Balagî, strategically located on a peak overlooking the Segre river and dominating the area, was constructed between 897 and 898 by Lubb ibn Muhammad to strengthen the defense of the march against Christian raids.