Origins of
Mecia de Viladestes The Almoravids, sometimes called "al-mulathamun" ("the veiled ones", from '''', Arabic for "
veil") trace their origins back to several Saharan
Sanhaja nomadic tribes, dwelling in an area that stretches between the
Senegal River in the south and the
Draa river in the north. The first and main Almoravid founding tribe was the
Lamtuna. It occupied the region around
Awdaghust (Aoudaghost) in the southern Sahara according to contemporary Arab chroniclers such as
al-Ya'qubi,
al-Bakri and
Ibn Hawqal. According to French historian
Charles-André Julien: "The original cell of the Almoravid empire was a powerful Sanhaja tribe of the Sahara, the Lamtuna, whose place of origin was in the
Adrar in
Mauritania." These nomads had been converted to Islam in the 9th century. Abdallah ibn Yasin was a Gazzula Berber, and probably a convert rather than a born Muslim. His name can be read as "son of
Ya-Sin" (the title of the 36th
surah of the
Quran), suggesting he had obliterated his family past and was "re-born" of the Holy Book. Ibn Yasin certainly had the ardor of a puritan zealot; his creed was mainly characterized by a rigid formalism and a strict adherence to the dictates of the Quran, and the
Orthodox tradition. Probably sensing the useful organizing power of Ibn Yasin's pious fervor, the Lamtuna chieftain
Yahya ibn Umar al-Lamtuni invited the man to preach to his people. The Lamtuna leaders, however, kept Ibn Yasin on a careful leash, forging a more productive partnership between them. Invoking stories of the early life of Muhammad, Ibn Yasin preached that conquest was a necessary addendum to Islamicization, that it was not enough to merely adhere to God's law, but necessary to also destroy opposition to it. In Ibn Yasin's ideology, anything and everything outside of Islamic law could be characterized as "opposition". He identified tribalism, in particular, as an obstacle. He believed it was not enough to urge his audiences to put aside their blood loyalties and ethnic differences, and embrace the equality of all Muslims under the Sacred Law, it was necessary to make them do so. For the Lamtuna leadership, this new ideology dovetailed with their long desire to refound the Sanhaja union and recover their lost dominions. In the early 1050s, the Lamtuna, under the joint leadership of Yahya ibn Umar and Abdallah ibn Yasin—soon calling themselves the
al-Murabitin (Almoravids)—set out on a campaign to bring their neighbors over to their cause. His stronghold there was a fortress called
Azuggi (also rendered variably as Azougui or Azukki), which had been built earlier by his brother Yannu ibn Umar al-Hajj. Some scholars, including Attilio Gaudio, Christiane Vanacker, and Brigitte Himpan and Diane Himpan-Sabatier describe Azuggi as the "first capital" of the Almoravids. Yahya ibn Umar was subsequently killed in battle against the Guddala in 1055 or 1056, or later in 1057. Meanwhile, in the north, Ibn Yasin had ordered Abu Bakr to take command of the Almoravid army and they soon recaptured Sijilmasa. By 1056, they had conquered
Taroudant and the
Sous Valley, continuing to impose Maliki Islamic law over the communities they conquered. When the campaign concluded that year, they retired to Sijilmasa and established their base there. It was around this time that Abu Bakr appointed his cousin,
Yusuf ibn Tashfin, to command the garrison of the city. In 1058, they crossed the
High Atlas and conquered
Aghmat, a prosperous commercial town near the foothills of the mountains, and made it their capital. They then came in contact with the
Barghawata, a Berber tribal confederation who followed an Islamic "heresy" preached by
Salih ibn Tarif three centuries earlier. The Barghawata occupied the region northwest of Aghmat and along the Atlantic coast. They resisted the Almoravids fiercely and the campaign against them was bloody.
Abdullah ibn Yasin was killed in battle with them in 1058 or 1059, at a place called Kurīfalalt or Kurifala. Historian Ronald Messier gives the date more specifically as 18 March 1070 (462 AH). Other historians date this conquest to 1074 or 1075. In 1079, Ibn Tashfin sent an army 20,000 strong from Marrakesh to push towards what is now
Tlemcen to attack the Banu Ya'la, the Zenata tribe occupying the area. Led by Mazdali Ibn Tilankan, the army defeated the Banu Ya'la in battle near the valley of the Moulaya River and executed their commander, Mali Ibn Ya'la, the son of Tlemcen's ruler. However, Ibn Tilankan did not push to Tlemcen right away as the city of
Oujda, occupied by the Bani Iznasan, was too strong to capture. Instead, Ibn Tashfin himself returned with an army in 1081 that captured Oujda and then conquered Tlemcen, massacring the Maghrawa forces there and their leader, al-Abbas Ibn Bakhti al-Maghrawi. He pressed on and by 1082 he had captured
Algiers. Ibn Tashfin subsequently treated Tlemcen as his eastern base. At that time, the city had consisted of an older settlement called Agadir, but Ibn Tashfin founded a new city next to it called Takrart, which later merged with Agadir in the Almohad period to become the present city. The Almoravids subsequently clashed with the
Hammadids to the east multiple times, but they did not make a sustained effort to conquer the central Maghrib and instead focused their efforts on other fronts. Eventually, in 1104, they signed a peace treaty with the Hammadids. At some point, Yusuf Ibn Tashfin moved to acknowledge the
Abbasids caliphs in
Baghdad as overlords. While the Abbasids themselves had little direct political power by this time, the symbolism of this act was important and enhanced Ibn Tashfin's legitimacy. According to Ibn Idhari, it was at the same time as this that Ibn Tashfin also took the title of ('Commander of the Muslims'). Ibn Idhari dates this to 1073–74, but some authors, including modern historian
Évariste Lévi-Provençal, have dated this political decision to later, most likely when the Almoravids were in the process of securing control of al-Andalus. According to Amira Bennison, the recognition of the Abbasid caliph must have been established by the 1090s at latest. When
Abu Bakr ibn al-Arabi visited Baghdad between 1096 and 1098, possibly as part of an Almoravid embassy to Caliph
al-Mustazhir, he claimed that the
Friday prayers were already being given in the Abbasid caliph's name across the territories ruled by Yusuf Ibn Tashfin.
Southern Almoravids and the Ghana Empire After leaving Yusuf Ibn Tashfin in the north and returning south, Abu Bakr Ibn Umar reportedly made Azuggi his base. The town acted as the capital of the southern Almoravids under him and his successors. Despite the importance of the Saharan trade routes to the Almoravids, the history of the southern wing of the empire is not well documented in Arabic historical sources and is often neglected in histories of the Maghreb and al-Andalus. This has also encouraged a division in modern studies about the Almoravids, with archeology playing a greater role in the study of the southern wing, in the absence of more textual sources. The exact nature and impact of the Almoravid presence in the Sahel is a strongly debated topic among
Africanists. According to Arab tradition, the Almoravids under Abu Bakr's leadership conquered the
Ghana Empire, founded by the Soninke, sometime around 1076–77. Traditions in
Mali related that the Sosso attacked and took over Mali as well, and the ruler of the Sosso, Sumaouro Kanté, took over the land. However, criticism from Conrad and Fisher (1982) argued that the notion of any Almoravid military conquest at its core is merely perpetuated folklore, derived from a misinterpretation or naive reliance on Arabic sources. According to Professor Timothy Insoll, the archaeology of ancient Ghana simply does not show the signs of rapid change and destruction that would be associated with any Almoravid-era military conquests. Dierke Lange agreed with the original military incursion theory but argues that this doesn't preclude Almoravid political agitation, claiming that the main factor of the demise of the Ghana Empire owed much to the latter. According to Lange, Almoravid religious influence was gradual, rather than the result of military action; there the Almoravids gained power by marrying among the nation's nobility. Lange attributes the decline of ancient Ghana to numerous unrelated factors, one of which is likely attributable to internal dynastic struggles instigated by Almoravid influence and Islamic pressures, but devoid of military conquest. This interpretation of events has been disputed by later scholars like Sheryl L. Burkhalter, who argued that, whatever the nature of the "conquest" in the south of the Sahara, the influence and success of the Almoravid movement in securing west African gold and circulating it widely necessitated a high degree of political control. The Arab geographer
Ibn Shihab al-Zuhri wrote that the Almoravids ended
Ibadi Islam in Tadmekka in 1084 and that Abu Bakr "arrived at the mountain of gold" in the deep south.—while fighting in the historic region of the
Sudan. After the death of Abu Bakr (1087), the confederation of Berber tribes in the Sahara was divided between the descendants of Abu Bakr and his brother Yahya, and would have lost control of Ghana. Sheryl Burkhalter suggests that Abu Bakr's son Yahya was the leader of the Almoravid expedition that conquered Ghana in 1076, and that the Almoravids would have survived the loss of Ghana and the defeat in the Maghreb by the Almohads, and would have ruled the Sahara until the end of the 12th century.
Expansion into al-Andalus Initially, it appears Ibn Tashfin had little interest in involving the Almoravids in the politics of al-Andalus (the Muslim territories on the Iberian Peninsula). After the collapse of the
Caliphate of Córdoba in the early 11th century, al-Andalus had split into small kingdoms or city-states known as the
Taifas. These states constantly fought with each other but were unable to raise large armies of their own, so they became reliant instead on the
Christian kingdoms of the north for military support. This support was secured through the regular payment of
parias (tributes) to the Christian kings, but the payments became a fiscal burden that drained the treasuries of these local rulers. In turn, the
Taifa rulers burdened their subjects with increased taxation, including taxes and tariffs that were not considered legal under Islamic law. As the payments of tribute began to falter, the Christian kingdoms resorted to punitive raids and eventually to conquest. The
Taifa kings were unwilling or unable to unite to counter this threat, and even the most powerful
Taifa kingdom,
Seville, was unable to resist Christian advances. After the Almoravid capture of Ceuta (1083) on the southern shore of the Strait of Gibraltar, the way was now open for Ibn Tashfin to intervene in al-Andalus. It was in this same year that
Alfonso VI, king of
Castile and
León, led a military campaign into southern al-Andalus to punish al-Mu'tamid of Seville for failing to pay him tribute. His expedition penetrated all the way to
Tarifa, the southernmost point of the Iberian Peninsula. A couple of years later, in May 1085, he seized control of
Toledo, previously one of the most powerful city-states in al-Andalus. Soon after, he also began a siege of
Zaragoza. These dramatic events forced the
Taifa kings to finally consider seeking an external intervention by the Almoravids. According to the most detailed Arabic source, it was al-Mu'tamid, the ruler of Seville, who convened a meeting with his neighbours, al-Mutawwakil of
Badajoz and
Abdallah ibn Buluggin of
Granada, where they agreed to send an embassy to Ibn Tashfin to appeal for his assistance. The
Taifa kings were aware of the risks that came with an Almoravid intervention but considered it the best choice among their bad options. Al-Mu'tamid is said to have remarked bitterly: "Better to pasture camels than to be a swineherd"—meaning that it was better to submit to another Muslim ruler than to end up as subjects of a Christian king. As a condition for his assistance, Ibn Tashfin demanded that
Algeciras (a city on the northern shore of the Strait of Gibraltar, across from Ceuta) be surrendered to him so he could use it as a base for his troops. Al-Mu'tamid agreed. Ibn Tashfin, wary of the hesitation of the
Taifa kings, immediately sent an advance force of 500 troops across the strait to take control of Algeciras. They did so in July 1086 without encountering resistance. The rest of the Almoravid army, numbering around 12,000, soon followed. Ibn Tashfin and his army then marched to Seville, where they met up with the forces of al-Mu'tamid, al-Mutawwakil, and Abdallah ibn Buluggin. Alfonso VI, hearing of this development, lifted his siege of Zaragoza and marched south to confront them. The two sides met at a place north of Badajoz, called Zallaqa in Arabic sources and Sagrajas in Christian sources. In the
Battle of Sagrajas (or Battle of Zallaqa), on 23 October 1086, Alfonso was soundly defeated and forced to retreat north in disorder. Al-Mu'tamid recommended that they press their advantage, but Ibn Tashfin did not pursue the Christian army further, returning instead to Seville and then to North Africa. It is possible he was unwilling to be away from his home base for too long or that the death of his eldest son, Sir, encouraged him to return. After Ibn Tashfin's departure, Alfonso VI quickly resumed his pressure on the
Taifa kings and forced them to send tribute payments again. He captured the fortress of
Aledo, cutting off eastern al-Andalus from the other Muslim kingdoms. Meanwhile, Ibn Rashiq, the ruler of
Murcia, was embroiled in a rivalry with al-Mu'tamid of Seville. As a result, this time it was the elites or notables () of al-Andalus who now called for help from the Almoravids, rather than the kings. In May–June 1088, Ibn Tashfin landed at Algeciras with another army, soon joined by al-Mu'tamid of Seville, by Abdallah ibn Buluggin of Granada, and by other troops sent by Ibn Sumadih of
Almería and Ibn Rashiq of Murcia. They then set out to retake Aledo. The siege, however, was undermined by rivalries and disunity among the
Taifa kings. News eventually reached the Muslims that Alfonso VI was bringing an army to help the Castilian garrison. In November 1088, Ibn Tashfin lifted the siege and returned to North Africa again, having achieved nothing. Alfonso VI sent his trusted commander,
Alvar Fañez, to pressure the
Taifa kings again. He succeeded in forcing Abdallah ibn Buluggin to resume tribute payments and began to pressure al-Mu'tamid in turn. In 1090, Ibn Tashfin returned to al-Andalus yet again, but by this point he seemed to have given up on the
Taifa kings and now intended to take direct control of the region. The Almoravid cause benefited from the support of the
Maliki (
Islamic jurists) in Al-Andalus, who extolled the Almoravid devotion to
jihad while criticizing the
Taifa kings as impious, self-indulgent, and thus illegitimate. In September 1090, Ibn Tashfin forced Granada to surrender to him and sent Abdallah ibn Buluggin into exile in Aghmat. He then returned to North Africa again, but this time he left his nephew, Sir ibn Abu Bakr, in charge of Almoravid forces in al-Andalus. Al-Mu'tamid, seeking to salvage his position, resorted to striking an alliance with Alfonso VI, which further undermined his own popular support. In early 1091, the Almoravids took control of Cordoba and turned towards Seville, defeating a Castilian force led Alvar Fañez that came to help al-Mu'tamid. In September 1091, al-Mu'tamid surrendered Seville to the Almoravids and was exiled to Aghmat. In late 1091, the Almoravids captured Almería. In late 1091 or January 1092, Ibn Aisha, one of Ibn Tashfin's sons, seized control of Murcia.
Campaigns against Valencia The capture of Murcia brought the Almoravids within reach of
Valencia, which was officially under the control of
al-Qadir, the former
Taifa ruler of Toledo. He had been installed here in 1086 by the Castilians after they took control of Toledo. Al-Qadir's unpopular rule in Valencia was supported by a Castilian garrison headed by
Rodrigo Díaz de Vivar, a Castilian noble and mercenary better known today as El Cid. In October 1092, when El Cid was away from the city, there was an insurrection and ''coup d'état
led by the qadi'' (judge) Abu Ahmad Ja'far Ibn Jahhaf. The latter called for help from the Almoravids in Murcia, who sent a small group of warriors to the city. The Castilian garrison was forced to leave and al-Qadir was captured and executed. However, the Almoravids did not send enough forces to oppose El Cid's return and Ibn Jahhaf undermined his popular support by proceeding to install himself as ruler, acting like yet another
Taifa king. El Cid began a long
siege of the city, completely surrounding it, burning nearby villages, and confiscating the crops of the surrounding countryside. Ibn Jahhaf agreed at one point to pay tribute to El Cid in order to end the siege, which resulted in the Almoravids in the city being escorted out by El Cid's men. For reasons that remain unclear, an Almoravid relief army led by Ibn Tashfin's nephew, Abu Bakr ibn Ibrahim, approached Valencia in September 1093 but then retreated without engaging El Cid. Ibn Jahhaf continued negotiations. In the end, he refused to pay El Cid's tribute and the siege continued. By April 1094, the city was starving and he decided to surrender it shortly after. El Cid re-entered Valencia on 15 June 1094, after 20 months of siege. Rather than ruling through a puppet again, he now took direct control as king. Meanwhile, also in 1094, the Almoravids seized control of the entire
Taifa kingdom of Badajoz after its ruler, al-Mutawwakil, sought his own alliance with Castile. The Almoravid expedition was led by Sir ibn Abu Bakr, who had been appointed as governor of Seville. The Almoravids then returned their attention to Valencia, where another of Ibn Tashfin's nephews, Muhammad ibn Ibrahim, was ordered to take the city. He arrived outside its walls in October 1094 and began attacks on the city. The siege ended when El Cid launched a two-sided attack: he sent a sortie from one city gate that posed as his main force, occupying the Almoravid troops, while he personally led another force from a different city gate and attacked their undefended camp. This inflicted the first major defeat on the Almoravids on the Iberian Peninsula. After his victory, El Cid executed Ibn Jahhaf by burning him alive in public, perhaps in retaliation for treachery. El Cid fortified his new kingdom by building fortresses along the southern approaches to the city to defend against future Almoravid attacks. In late 1096, Ibn Aisha led an army of 30,000 men to besiege the strongest of these fortresses, Peña Cadiella (just south of
Xativa). El Cid confronted them and called on
Aragon for reinforcements. When the reinforcements approached, the Almoravids lifted the siege, but laid a trap for El Cid's forces as they marched back to Valencia. They successfully ambushed the Christians in a narrow pass located between the mountains and the sea, but El Cid managed to rally his troops and repel the Almoravids yet again. In 1097, the Almoravid governor of Xativa, Ali ibn al-Hajj, led another incursion into Valencian territory but was quickly defeated and pursued to
Almenara, which El Cid then captured after a three-month siege. In 1097, Yusuf Ibn Tashfin himself led another army into al-Andalus. Setting out from Cordoba with Muhammad ibn al-Hajj as his field commander, he marched against Alfonso VI, who was in Toledo at the time. The Castilians were routed at the
Battle of Consuegra. El Cid was not involved, but his son, Diego, was killed in the battle. Soon after, Alvar Fañez was also defeated near
Cuenca in another battle with the Almoravids, led by Ibn Aisha. The latter followed up this victory by ravaging the lands around Valencia and defeated another army sent by El Cid. Despite these victories in the field, the Almoravids did not capture any major new towns or fortresses. El Cid attempted to Christianize Valencia, converting its main mosque into a church and establishing a
bishopric, but ultimately failed to attract many new Christian settlers to the city. He died on 10 July 1099, leaving his wife, Jimena, in charge of the kingdom. She was unable to hold off Almoravid pressures, which culminated in a siege of the city by the veteran Almoravid commander, Mazdali, in the early spring of 1102. In April–May, Jimena and the Christians who wished to leave the city were evacuated with the help of Alfonso VI. The Almoravids occupied the city after them. That same year, with the capture of Valencia counting as another triumph, Yusuf Ibn Tashfin celebrated and arranged for his son,
Ali ibn Yusuf, to be publicly recognized as his heir. The
Taifa king of Zaragoza, the only other Muslim power left in the peninsula, sent an ambassador on this occasion and signed a treaty with the Almoravids. By the time Ibn Tashfin died in 1106, the Almoravids were thus in control of all of al-Andalus except for Zaragoza. In general, they had not reconquered any of the lands lost to the Christian kingdoms in the previous century.
Early reign of Ali ibn Yusuf coin from
Seville, 1116. (
British Museum); the Almoravid
gold dinar would set the standard of the Iberian
maravedí. Ali Ibn Yusuf () was born in Ceuta and educated in the traditions of al-Andalus, unlike his predecessors, who were from the Sahara. According to some scholars, Ali ibn Yusuf represented a new generation of leadership that had forgotten the desert life for the comforts of the city. His long reign of 37 years is historically overshadowed by the defeats and deteriorating circumstances that characterized the later years, but the first decade or so, prior to 1118, was characterized by continuing military successes, enabled in large part by skilled generals. While the Almoravids remained dominant in field battles, military shortcomings were becoming apparent in their relative inability to sustain and win long sieges. In these early years, the Almoravid state was also wealthy, minting more gold than ever before, and Ali ibn Yusuf embarked on ambitious building projects, especially in Marrakesh. Upon his enthronement, Ali ibn Yusuf was accepted as the new ruler by most Almoravid subjects, except for his nephew, Yahya ibn Abu Bakr, the governor of Fes. Ali ibn Yusuf marched his army to the gates of Fes, causing Yahya to flee to Tlemcen. There, the veteran Almoravid commander, Mazdali, convinced Yahya to reconcile with his uncle. Yahya agreed, went on a pilgrimage to Mecca, and upon his return he was allowed to rejoin Ali Ibn Yusuf's court in Marrakesh. Ali ibn Yusuf visited al-Andalus for the first time of his reign in 1107. He organized the Almoravid administration there and placed his brother Tamim as overall governor, with Granada acting as the administrative capital. The first major offensive in al-Andalus during his reign took place in the summer of 1108. Tamim, assisted by troops from Murcia and Cordoba, besieged and captured the small fortified town of
Uclés, east of Toledo. Alfonso VI sent a relief force, led by the veteran Alvar Fañez, that was defeated on 29 May in the
Battle of Uclés. The result was made worse for Alfonso VI because his son and heir,
Sancho, died in the battle. In the aftermath, the Castilians abandoned Cuenca and
Huete, which opened the way for an Almoravid invasion of Toledo. This came in the summer of 1109, with Ali Ibn Yusuf crossing over to lead the campaign in person. The death of Alfonso VI in June must have provided another advantage to the Almoravids.
Talavera, west of Toledo, was captured on 14 August. Toledo itself, however, resisted under the leadership of Alvar Fañez. Unable to overcome the city's formidable defenses, Ali ibn Yusuf eventually retreated without capturing it. to
Zaragoza in Al-AndalusMeanwhile, the
Taifa king of Zaragoza,
al-Musta'in, was a capable ruler but faced conflicting pressures. Like the previous
Taifa rulers, he continued to pay
parias to the Christian kingdoms to keep the peace, but popular sentiment within the city opposed this policy and increasingly supported the Almoravids. To appease this sentiment, al-Musta'in embarked on an expedition against the Christians of Aragon, but it failed. He died in battle in January 1110 at
Valtierra. His son and successor, Imad al-Dawla, was unable to establish his authority and, faced with the threat of revolt, fled the city. Ali ibn Yusuf seized the opportunity and gave Muhammad ibn al-Hajj the task of capturing Zaragoza. On 30 May, Ibn al-Hajj entered the city with little opposition, ending the last independent
Taifa kingdom. The Almoravids remained on the offensive in the following years, but some of their best generals died during this time. In 1111, Sir ibn Abu Bakr (governor of Seville) campaigned in the west, occupying Lisbon and
Santarém and securing the frontier along the
Tagus River. Muhammad ibn al-Hajj continued to be active in the east. His expedition to
Huesca in 1112 was the last time that Muslim forces operated near the
Pyrenees. In 1114, he
campaigned in Catalonia and raided across the region, aided by Ibn Aisha from Valencia. On their return march, however, the Almoravids were
ambushed and both commanders were killed. In late 1113, Sir ibn Abu Bakr died. In 1115, it was Mazdali, one of the most veteran and loyal allies of Yusuf ibn Tashfin's family, who died in battle while serving as governor of Cordoba and campaigning to the north of it. Together, these deaths represented a major loss of senior and capable commanders for the Almoravids. In 1115, the new governor of Zaragoza, Abu Bakr ibn Ibrahim ibn Tifilwit, besieged Barcelona for 27 days while Count Ramon Berengar III was in
Majorca. They lifted the siege when the Count returned, but in that same year the Almoravids captured the Balearic Islands, which had been temporarily occupied by the
Catalans and
Pisans. The Almoravids occupied Majorca without a fight after the death of the last local Muslim ruler, Mubashir al-Dawla. Ali ibn Yusuf made his third crossing into al-Andalus in 1117 to lead an
attack on Coimbra. After only a short siege, however, he withdrew. His army raided along the way back to Seville and won significant spoils, but it was a further sign that Almoravid initiative was being depleted.
Decline Almoravid fortunes began to turn definitively after 1117. While Léon and Castile were in disarray following the death of Alfonso VI, other Christian kingdoms exploited opportunities to expand their territories at the expense of the Almoravids. In 1118,
Alfonso I El Batallador ('The Battler'), king of Aragon, launched a successful attack on Zaragoza with the help of the French crusader
Gaston de Béarn. The siege of the city began on 22 May and, after no significant reinforcements arrived, it surrendered on 18 December. Ali ibn Yusuf ordered a major expedition to recover the loss, but it suffered a serious defeat at the
Battle of Cutanda in 1120. The crisis is evidence that Almoravid forces were over-extended across their vast territories. When the Almoravid governor of Zaragoza, Abd Allah ibn Mazdali, had died earlier in 1118, no replacement was forthcoming and the Almoravid garrison left in the city prior to the siege seems to have been very small. It is possible that Yusuf ibn Tashfin had understood this problem and had intended to leave Zaragoza as a buffer state between the Almoravids and the Christians, as suggested by an apocryphal story in the
Hulul al-Mawshiya, a 14th-century chronicle, which reports that Ibn Tashfin, while on his deathbed, advised his son to follow this policy. Alfonso I's capture of Zaragoza in 1118, along with the union of Aragon with the counties of Catalonia in 1137, also transformed the Kingdom of Aragon into a major Christian power in the region. To the west,
Afonso I of Portugal asserted his independent authority and effectively created the
Kingdom of Portugal. The growing power of these kingdoms added to the political difficulties Muslims now faced in the Iberian Peninsula. This major reversal precipitated a decline in popular support for the Almoravids, at least in al-Andalus. Andalusi society largely cooperated with the Almoravids on the understanding that they could keep the aggressive Christian kingdoms at bay. Once this was no longer the case, their authority became increasingly hollow. Their legitimacy was further undermined by the issue of taxation. One of the main appeals of early Almoravid rule had been its mission to eliminate non-canonical taxes (i.e. those not sanctioned by the Qur'an), thus relieving the people of a major fiscal burden. However, it was not feasible to finance Almoravid armies in the fight against multiple enemies across a large empire with the funding from Quranic taxes alone. Ali ibn Yusuf was thus forced to reintroduce non-canonical taxes while the Almoravids were losing ground. These developments may have been factors in sparking an uprising in Cordoba in 1121. The Almoravid governor was besieged in his palace and the rebellion became so serious that Ali ibn Yusuf crossed over into al-Andalus to deal with it himself. His army besieged Cordoba but, eventually, a peace was negotiated between the Almoravid governor and the population. This was the last time Ali ibn Yusuf visited al-Andalus. Alfonso I of Aragon inflicted further humiliations upon the Almoravids in the 1120s. In 1125, he marched down the eastern coast, reached Granada (though he refrained from besieging it), and devastated the countryside around Cordoba. In 1129, he raided the region of Valencia and defeated an army sent to stop him. The Almoravid position in al-Andalus was only shored up in the 1130s. In 1129, following Alfonso I's attacks, Ali ibn Yusuf sent his son (and later successor),
Tashfin ibn Ali, to re-organize the military structure in al-Andalus. His governorship grew to include Granada, Almeria, and Cordoba, becoming in effect the governor of al-Andalus for many years, where he performed capably. The
Banu Ghaniya clan, relatives of the ruling Almoravid dynasty, also became important players during this period.
Yahya ibn Ali ibn Ghaniya was governor of Murcia up to 1133, while his brother was governor of the Balearic Islands after 1126. For much of the 1130s, Tashfin and Yahya led the Almoravid forces to a number of victories over Christian forces and reconquered some towns. The most significant was the
Battle of Fraga in 1134, where the Almoravids, led by Yahya, defeated an Aragonese army besieging the small Muslim town of
Fraga. Notably, Alfonso I El Batallor was wounded and died shortly after. The greatest challenge to Almoravid authority came from the Maghreb, in the form of the
Almohad movement. The movement was founded by
Ibn Tumart in the 1120s and then continued after his death (c. 1130) under his successor,
Abd al-Mu'min. They established their base at
Tinmal, in the High Atlas mountains south of Marrakesh, and from here they progressively rolled back Almoravid territories. The struggle against the Almohads was immensely draining on Almoravid resources and contributed to their shortage of manpower elsewhere, including in al-Andalus. It also required the construction of large fortresses in the Almoravid heartlands in present-day Morocco, such as the fortress of
Tasghimut. On Ali ibn Yusuf's orders,
defensive walls were built around the capital of Marrakesh for the first time in 1126. In 1138, he recalled his son, Tashfin, to Marrakesh in order to assist in the fight against the Almohads. Removing him from al-Andalus only further weakened the Almoravid position there. In 1138, the Almoravids suffered a defeat at the hands of
Alfonso VII of León and Castile. In the
Battle of Ourique (1139), they were defeated by Afonso I of Portugal, who thereby won his crown. During the 1140s, the situation grew steadily worse. After Ali ibn Yusuf's death in 1143, his son Tashfin ibn Ali lost ground rapidly before the Almohads. In 1146, he was killed in a fall from a precipice while attempting to escape after a defeat near
Oran. The
Muridun staged a major revolt in southwestern Iberia in 1144 under the leadership of the Sufi mystic
Ibn Qasi, who later passed to the Almohads.
Lisbon was conquered by the Portuguese in 1147. Tashfin's two successors were
Ibrahim ibn Tashfin and
Ishaq ibn Ali, but their reigns were short. The
conquest of Marrakesh by the Almohads in 1147 marked the fall of the dynasty, though fragments of the Almoravids continued to struggle throughout the empire. Among these fragments, there was the rebel Yahya Al-Sahrāwiyya, who resisted Almohad rule in the Maghreb for eight years after the fall of Marrakesh before surrendering in 1155. Also in 1155, the remaining Almoravids were forced to retreat to the Balearic Islands and later Ifriqiya under the leadership of the Banu Ghaniya, who were eventually influential in the downfall of their conquerors, the Almohads, in the eastern part of the Maghreb. == Emblem ==