Raid of 904

The Raid of 904 (الغزو سنة ٢٩١, Al-Ġazw sana 291; in Catalan, Ràtzia de 904) was a military campaign (غزو, ġazw) of the Emirate of Cordova against the counties of Pallars and Ribagorza.

Background
In August 872, Bernad of Gothia was assassinated by a vassal of Bernad Plantapilosa, and Oliba II was reinstated at the head of the counties of Carcassona and Rasés, while Plantapilosa governed Tolosa and Lemotges. The Pallars and the Ribagorça escaped his control, since the supporters of the assassinated count founded a new dynasty started by count Raimon I of Pallars and Ribagorça.

In 897, Lubb ibn Muhammad ibn Lubb Al-Qasawi attacked the county of Barcenona, killing count Wigfred on the battlefield, in August 11 that year. Soon after, his army seized Tutila, Tarasuna, Al-Lawa, Tulaytula and ravaged Jaiyan's countryside.

Raid of 904
In 904, Lubb ibn Muhammad departed from Madīnat Balagî with his army, in order to confront Raimon I of Pallars and Ribagorça; successfully seizing the castles of Sarroca de Bellera, Castissent and Mola de Baró, achieving the greatest extension of his domains. His forces ravaged and plundered the entire pyrenean county; killing some 700 people and taking about 1,000 war captives, among them the count's own son: Isarn.

Consequences
In 905, his ally Fortunius Garçes of Pamplona was deposed by Sançio I of Navarre (with the help of the count of Pallars). In 907, Lubb ibn Muhammad tried to help Fortún by attacking Pamplona, but the results of the expedition were disastrous. Soon after, Lubb fell in an ambush prepared by Sançio of Navarre, and was assassinated.

Isarn, who was held captive in Tutila, was released in 918