The Taifa of Lérida () was a factional kingdom (á¹ÂÃÂþifa) in Muslim Iberia between 1039/1046 and 1102/1110. Based on the city of Lérida (Catalan Lleida, Arabic LÃÂrida), the á¹ÂÃÂþifa was not an independent state throughout this period but was sometimes a part of the larger á¹ÂÃÂþifa of Zaragoza ruled by a governor (wÃÂlë).
Under the late Córdoban caliphate, Lérida was ruled by wÃÂlës of the Banà « Tujëb. In 1039, it was taken from them, along with Zaragoza, by al-Mustaÿën of the Banà « Hà «d. At some point prior to his death in 1046, al-Mustaÿën placed his younger son, Yà «suf ibn SulaymÃÂn ibn Hà «d al-MuáºÂaffar, in charge of Lérida, while in 1046 the elder son, Aḥmad al-Muḳtadir, inherited Zaragoza. From 1045, Count Ramon Berenguer I of Barcelona forced the brothers to pay tribute (parias) in return for his not attacking them. In 1064, the brothers had a falling-out over the loss of Barbastro to an international Christian army, for which defeat al-Muḳtadir blamed Yà «suf, although the city was soon recovered.
After al-Muḳtadir of Zaragoza acquired the á¹ÂÃÂþifa of Tortosa in 1061 and the á¹ÂÃÂþifa of Denia in 1076, he and his brother fought a civil war in 1078âÂÂ81, resulting in the reunification of al-Mustaÿën's principality in al-Muḳtadir's hands. When al-Muḳtadir died in late 1081, the á¹ÂÃÂþifa was divided between his two sons. The younger, al-Mundhir, who was already governing Denia and Tortosa as his father's ḥÃÂjib, inherited Lérida also.
The á¹ÂÃÂþifa of Lérida, as the northeasternmost of the states to come out of the division of 1081, bore the brunt of the conflict with Sancho RamÃÂrez, king of Aragon, and his son, Peter, king of Sobrarbe, who steadily advanced down the valley of the Cinca. In 1083, they took Graus; then, between 1087 and 1093, Peter took Estada, Monzón and Almenar. In 1089, Count Ermengol IV of Urgell launched an attack towards Balaguer, possibly even taking the city temporarily.
In 1090, al-Mundhir died and was succeeded by his son, SulaymÃÂn ibn Hà «d, a minor. SulaymÃÂn's regents divided the á¹ÂÃÂþifa, separating Denia and Tortosa to their own advantage and leaving him a rump Lérida. In 1100, Peter, now king of Aragon, captured Barbastro, the second city of the á¹ÂÃÂþifa, and Sariñena. In 1101, the capture of and Albalate de Cinca brought the Aragonese up to Lérida itself.
Under al-Mundhir and his son, Lérida paid tribute to Count Ramon Berenguer III of Barcelona and Count Ermengol V of Urgell. Ermengol V died in the battle of Mollerussa fighting the North African Almoravids, who were trying to subdue the á¹ÂÃÂþifa of Lérida, in September 1102. Lérida appears to have fallen to the Almoravids that year, although others have it lasting until 1110. The Almoravids appointed wÃÂlës to govern it until it was captured by the Catalans in 1149.