Question: What Persian general took advantage of Nasr ibn Sayyar being preoccupied with a civil war? 

<P0-S0> The Sixth Siege of Gibraltar in 1411 was the only occasion on which control of Gibraltar was contested between two Islamic powers. <P0-S1>  After the failed Fifth Siege of Gibraltar in 1349–50, which ended with the death of King Alfonso XI of Castile from bubonic plague, the Kingdom of Castile was preoccupied with the Castilian Civil War and its aftermath. <P0-S2>  In 1369, Sultan Muhammed V of Granada took advantage of the Castilians' distractions and in the Siege of Algeciras (1369) he seized the city of Algeciras, on the west side of the Bay of Gibraltar, which Alfonso XI had captured in 1344. <P0-S3>  After razing it to the ground he made peace with Henry II, the winner of the civil war. <P0-S4>  The truce was renewed by Henry's successors John I and Henry III. <P0-S5>  At some point during the truces, control of Gibraltar was transferred from the Marinid dynasty of Morocco, which had held it since 1333, to the Granadans. <P0-S6>  It is not clear why this happened; it may have been as a condition of the Granadans assisting the Marinids against rebels in Morocco. <SEP> <P1-S0> Thimbron or Thibron (Greek: Θίμβρων ; fl. <P1-S1>  400–391 BC) was a Lacedaemonian general. <P1-S2>  He was sent out as harmost in 400 BC, with an army of about 5,000 men, to aid the Ionians against Tissaphernes, who wished to bring them into subjection. <P1-S3>  Thibron raised a substantial force of Peloponnesian troops and levies from other cities around Greece, but was initially unable to face the Persian army in the field. <P1-S4>  After he was joined by elements of the Ten Thousand, he challenged and defeated the Persian army on several occasions; seizing several cities before settling in to besiege Larissa. <P1-S5>  That siege proved fruitless, and Thibron was ordered to abandon it, and then replaced by another general, Dercylidas, before he could launch his next campaign. <P1-S6>  Upon his return to Sparta Thibron was tried and exiled for allowing his troops to plunder Sparta's allies in the region. <P1-S7>  In 391 BC, during the Corinthian War, Thibron was again dispatched to Ionia with an army, and was ordered to take aggressive action against the Persian satrap Struthas, who was pursuing a pro-Athenian, anti-Spartan policy. <P1-S8>  Thibron launched a number of successful raids into Persian territory. <P1-S9>  His raids tended to be poorly organized, however, and Struthas took advantage of this to ambush one of Thibron's raiding parties. <P1-S10>  The Spartans were routed, and a large number of them, including Thibron, were killed. <SEP> <P2-S0> Naṣr ibn Sayyār al-Lāythi al-Kināni (Arabic: نصر بن سيار الليثي الكناني‎ ‎ ; 663–748) was an Arab general and the last Umayyad governor of Khurasan in 738–748. <P2-S1>  Nasr played a distinguished role in the wars against the Turgesh, although he failed to decisively confront the rebellion of al-Harith ibn Surayj in its early stages. <P2-S2>  Although respected as a soldier and a statesman, he owed his appointment as governor more to his obscure tribal background, which rendered him dependent on the Caliph. <P2-S3>  His tenure was nevertheless successful, as Nasr introduced long-overdue tax reforms that alleviated social tension and largely restored stabilized Umayyad control in Transoxiana, which had been greatly reduced under the Turgesh onslaught. <P2-S4>  His last years were occupied by intertribal rivalries and uprisings, however, as the Caliphate itself descended into a period of civil war. <P2-S5>  In 746 Nasr was driven from his capital by Ibn Surayj and Juday' al-Kirmani, but returned after the latter fell out among themselves, resulting in Ibn Surayj's death. <P2-S6>  Preoccupied with this conflict, Nasr was unable to stop the outbreak and spread of the Abbasid Revolution, whose leader, Abu Muslim, exploited the situation to his advantage. <P2-S7>  Evicted from his province in early 748, he fled to Iran pursued by the Abbasid forces, where he died on 9 December 748. <SEP> <P3-S0> Abu Muslim Abd al-Rahman ibn Muslim al-Khorasani or al-Khurasani (Arabic: أبو مسلم عبد الرحمن بن مسلم الخراساني‎ ‎ born 718-19 or 723-27, died in 755), born Vehzādān Pūr-i Vandād Hormoz (Persian: وهزادان پور ونداد هرمزد‎ ‎ ), was a Persian general in service of the Abbasid dynasty, who led the Abbasid Revolution that toppled the Umayyad dynasty.