Reign
After his coronation in the city of León in January 1066, Alfonso VI had to confront the expansionist desires (although Alfonso would prove himself as having the same or more so) of his brother Sancho II, who, as the eldest son, considered himself the sole legitimate heir of all the kingdoms of their father. The conflicts began after the death of their mother Queen Sancha on 7 November 1067, leading to seven years of war among the three brothers. The first skirmish was the Battle of Llantada, a trial by ordeal in which both brothers agreed that the one who was victorious would obtain the kingdom of the defeated brother. Although Sancho II was the winner, Alfonso VI did not comply with the agreement; even so, relations between them remained cordial as evidenced by the fact that Alfonso was present at the wedding of Sancho II to an English noblewoman named Alberta on 26 May 1069. This was the same event where both decided to join forces to divide between themselves the Kingdom of Galicia that had been assigned to their younger brother García II. In the wake of the fratricidal war waged between the successors of al-Muzaffar, ruler of the taifa of Badajoz, upon the latter's death in 1068, Alfonso managed to exploit the situation in order to extract economic profit, even though the taifa nominally fell under García's sphere of influence.
With the complicity of Alfonso VI, Sancho II invaded Galicia in 1071, defeating their brother García II who was arrested in Santarém and imprisoned in Burgos until he was exiled to the Taifa of Seville, then under the rule of Al-Mu'tamid ibn Abbad. After eliminating their brother, Alfonso VI and Sancho II titled themselves kings of Galicia and signed a truce.
The truce was broken with the Battle of Golpejera on 12 January 1072. Although Sancho II's troops were victorious, he decided not to persecute his brother Alfonso, who was imprisoned in Burgos and later transferred to the monastery of Sahagún, where his head was shaved and he was forced to wear a chasuble. Thanks to the intercession of their sister Urraca, Sancho and Alfonso reached an agreement under which Alfonso VI was able to take refuge in the Taifa of Toledo under the protection of his vassal Al-Mamun, accompanied by his childhood friend, the faithful Pedro Ansúrez and his two brothers Gonzalo and Fernando.
Alfonso VI, from his exile in Toledo, obtained the support of the Leonese nobility and his sister Urraca, who remained strong in the city of Zamora, a lordship that Ferdinand I had granted her previously. When Urraca refused to exchange Zamora for other cities that Sancho had offered her in an effort to control the fortress of Zamora, "key to the future expansion south of the Duero", Sancho besieged the city. However, during the siege, Sancho II was murdered. According to tradition, during the siege a nobleman named Vellido Dolfos appeared before the king, claiming to have changed his loyalty from Urraca to Sancho. Under the pretense of showing him the weak parts of the city's walls, Dolfos separated the king from his guard and killed him with a spear. Although there is no clear evidence that Sancho II's death was due to treason rather than deceit, since Dolfos was Sancho II's enemy, his murder occurred in a warlike attack during the siege, not near the city walls, but rather in a nearby forest where Dolfos lured the Castilian king away from his armed protection. The violent death of Sancho II, who had no descendants, allowed Alfonso VI to reclaim his throne as well as Sancho's and Garcia's original inheritances of Castile and Galicia, respectively.
Although Rodrigo Díaz de Vivar (El Cid), the standard-bearer and confidant of King Sancho II, was present at the siege of Zamora, the role he played in this event is not known. Neither can Sancho II's death be blamed on Alfonso VI, who, when his brother was killed, was in exile far from the events. However, this did nothing to prevent speculation that Alfonso was somehow involved in Sancho's murder; despite a paucity of evidence, "minstrels and ballads filled this void with beautiful literary creations devoid of any historical reality".
The lingering suspicion over this event would later become part of the Leyenda de Cardeña, a set of legendary narrative materials concerning El Cid which began to develop in the 13th century.
According to legend, Alfonso VI was forced by El Cid to take an oath denying that he had been involved in his brother's death, thus giving rise to mutual distrust between the two men, despite Alfonso VI's efforts at rapprochement by offering his kinswoman Jimena Díaz to El Cid in marriage as well as the immunity of his patrimony. These events and their consequences would eventually come to be considered historical by many later chroniclers and historians; however, most modern historians deny that such an event ever took place.
Thanks to Sancho II's death, García II could regain his own throne of Galicia; however, the following year, on 13 February 1073, Alfonso summoned García to a meeting, whereupon he imprisoned his younger brother. Garcia was held at the castle of Luna for seventeen years, where he eventually died on 22 March 1090. With his two brothers out of the way, Alfonso VI was able to secure the loyalty of both the high clergy and the nobility of his territories with ease; to confirm this, he spent the next two years visiting them.
Now established on the Leonese throne, and with the title of "Emperor", a relic of the Leonese tradition (which scholars describe as neogoticismo), Alfonso VI spent the following fourteen years of his reign expanding his territories through conquests such as that of Uclés and the lands of the Banu Di-l-Nun family. In 1072 he entitled himself rex Spanie.
In 1074, in alliance with Al-Mamun, ruler of the Taifa of Toledo, Alfonso waged an offensive against the Zirid ruler of the Taifa of Granada, Abd Allâh, taking the strategic fortress of Alcalá la Real.
Following the assassination of Sancho IV of Navarre in 1076, leaving only minor sons, the local Navarrese nobility divided over the succession to the Navareese crown. Alfonso VI had immediately taken possession of Calahorra and Najera, and also received the support of the nobility of Vizcaya-Álava and La Rioja, while the eastern nobility supported Sancho Ramírez of Aragon, who moved into the remainder of the kingdom. After the two kings reached an accord, Sancho Ramírez was recognized as king of Navarre and Alfonso VI annexed the territories of Álava, Vizcaya, part of Guipúzcoa and La Bureba, adopting in 1077 the title of Imperator totius Hispaniae ("Emperor of all Spain").
His great territorial expansion came at the expense of the Taifa Muslim kingdoms. Alfonso VI continued their economic exploitation by means of the system of parias, and succeeded in subduing most of the Taifa kingdoms as his tributaries, enforced by the threat of military intervention. In 1074, he probably recovered payment of the parias of Toledo, and the same year, helped by troops of that city, he cut down trees on the lands of the Taifa of Granada, which consequently also began to pay him taxes. In 1076, the Emir of Zaragoza, who wished to seize Valencia without being disturbed by Alfonso VI, agreed to resume payment of the parias. In 1079, he conquered Coria.
One of the initiatives of these years, known as the "Treason of Rueda", ended in failure. It took place in 1083 in the castle of Rueda de Jalón, when Alfonso VI received news that the governor of that stronghold, which belonged to the Taifa of Zaragoza, intended to surrender it to the Leonese king. The king's troops were ambushed when they entered the castle and several of the most important magnates of the kingdom were killed.
In June 1075, Alfonso VI's vassal and friend Al-Mamun, king of the Taifa of Toledo died of poisoning in Córdoba
, and was succeeded by his grandson Al-Qádir, who asked for help from the Leonese monarch to end an uprising against him. Alfonso VI took advantage of this request to besiege Toledo, which finally fell on 25 May 1085. After losing his throne, Al-Qádir was sent by Alfonso VI as king of the Taifa of Valencia under the protection of Álvar Fáñez. To facilitate this operation and to recover payment of the parias owed by the city, which had failed to pay him since the previous year, Alfonso VI besieged Zaragoza in the spring of 1086. In early March, Valencia accepted the rule of Al-Qádir; Xàtiva resisted requesting the aid of the rulers of Tortosa and Lérida until he was forced to do so. Their raid of the region failed, and they withdrew under harassment by the troops of Fáñez.
After this important conquest, Alfonso VI was entitled al-Imbraţūr dhī-l-Millatayn ("Emperor of the Two Religions") and as a gesture to the important Muslim population of the city, he promised them, in addition to respecting their properties, the right to use the main mosque. This decision was later revoked by the newly appointed archbishop of Toledo, Bernard of Sédirac, who took advantage of the king's absence from Toledo and with the support of Queen Constance.
The occupation of Toledo—which allowed Alfonso VI to incorporate the title of King of Toledo with those he already used (victoriosissimo rege in Toleto, et in Hispania et Gallecia)—led to the taking of cities such as Talavera and fortresses including the castle of Aledo. He also occupied Mayrit (now Madrid) in 1085 without resistance, probably by capitulation. The incorporation of the territory situated between the Sistema Central and the Tajo river would serve as the base of operations for the Kingdom of León, from where he could launch more attacks against the Taifas of Cordoba, Seville, Badajoz and Granada.
The conquest of the extensive and strategic Taifa of Toledo, the control of Valencia and the possession of Aledo, which isolated Murcia from the rest of Al-Andalus, worried the Muslim sovereigns of the Iberian Peninsula. The military and economic pressure on the Taifa kingdoms led the rulers of the Taifas of Seville, Granada, Badajoz, and Almeria to seek help from Yusuf ibn Tashfin, the Almoravid Emir who ruled the Maghreb. At the end of July 1086, Almoravid troops crossed the Strait of Gibraltar and landed in Algeciras.
In Seville, the Almoravid army joined the troops of the Taifa kingdoms, and together they marched to Extremadura. There, on 23 October 1086, they faced the troops of Alfonso VI (who had to abandon the siege of Zaragoza) in the Battle of Sagrajas. Álvar Fáñez, who had been called from Valencia, came and joined the king's forces. The battle ended with the defeat of the Christian troops, who returned to Toledo to defend themselves. The Emir, however, did not take advantage of the victory since he had to rush back to Africa because of the death of his son. The defeat marked the beginning of a new era in the Iberian Peninsula that lasted about three decades, in which the military initiative was taken by the Almoravids and Alfonso VI had to remain on the defensive. Nevertheless, he was able to retain Toledo, the main target of the Almoravid attacks.
Alfonso VI asked the Christian kingdoms of Europe to organize a Crusade against the Almoravids, who had recovered almost all the territories he had conquered, with the exception of Toledo, where the king remained strong. To reinforce his position, he reconciled with El Cid, who came to Toledo in late 1086 or early 1087. As a consequence of the serious defeat, the Andalusian taifas stopped paying the parias. The Cid, however, succeeded in re-subjugating the rebel Taifas over next two years.
Even though the crusade did not finally materialize, a large number of foreign knights came to the Iberian Peninsula. They included Raymond and Henry of Burgundy, who married Alfonso VI's daughters Urraca (1090) and Teresa (1094), respectively, which led to the establishment of the Anscarid and Capetian dynasties in the peninsular kingdoms. Some of the crusaders unsuccessfully besieged Tudela in the winter of 1087, before withdrawing. That same year, the king crushed a revolt in Galicia aimed at releasing his brother García II.
In 1088 Yusuf ibn Tashfin crossed the Strait of Gibraltar for the second time, but was defeated at the siege of Aledo and suffered the desertion of many of the rulers of the taifas. When the emir came again to the peninsula, he decided to depose all the taifa rulers and became the sole king of the entire Al-Andalus territory. Thanks to the Muslim defeat in Aledo, Alfonso VI had been able to resume the collection of the parias by threatening the ruler of the city that he would chop all the trees in the territory of Granada and then went to Seville to subjugate the city again. Abdallah ibn Buluggin of Granada had distanced himself definitively from Yusuf ibn Tashfin and Alfonso VI promised to help him in exchange for his submission.
In June 1090, the Almoravids launched a third attack, deposed the king of Granada, defeated the governor of Córdoba, and after the Battle of Almodóvar del Río, entered Seville and sent King al-Mutamid into exile. In the second half of the year, all the southern taifas had been conquered by the Almoravids and Alfonso was not able to fulfill his promise to help the king of Seville. The king suffered setbacks on all fronts: in the east he failed to seize Tortosa due to the late arrival of the Genoese fleet that was to take part in its capture; further south, Al-Qádir was deposed in a revolt; in the south, his relation with Zaida, daughter-in-law of the king of Seville failed to enhance his image as the champion of the Muslims of the peninsula against the Almoravids; and, finally, in the west, the alliance with the king of Badajoz did not stop the North Africans from conquering this territory. As the price for this alliance, Alfonso VI had obtained Lisbon, Sintra, and Santarém, but lost them in November 1094 when his son-in-law Raymond of Burgundy, responsible for defending these cities, was defeated by the Almoravid army that had taken Badajoz shortly before. The only good news for Alfonso VI was the recovery of Valencia in June by El Cid, who had defeated the Almoravid army that had advanced against him in the Battle of Cuarte on 21 October. This victory set the eastern border for about a decade.
According to some historians, Alfonso VI later defeated a conspiracy of his sons-in-law Raymond and Henry who had plotted to divide the kingdom at his death. To turn them against each other, he gave Henry and Teresa the government of the County of Portugal, until then ruled by Raymond, which comprised the lands from the Minho river to Santarém, while the government of Raymond was limited to Galicia. Other scholars, however, have shown that the pact could not have been made before 1103, suggesting instead that Henry's appointment was made in response to the military defeat of 1094.
In 1097, there was a fourth Almoravid invasion. Alfonso received the news when he was on his way to Zaragoza to assist his vassal Al-Mustain II in his confrontation with King Peter I of Aragon and Navarre. Once again, the Almoravid objective was Toledo, and they defeated the Christian forces at the Battle of Consuegra on 15 August, thus confirming the decline of the reign of Alfonso VI that had begun in 1086 with the defeat at Sagrajas.
In 1099, the Almoravids conquered a large number of the castles that defended Toledo and the surrounding areas and, in the following year, they tried unsuccessfully to seize the city. Henry of Burgundy, Alfonso's son-in-law, was in charge of defending Toledo since the king, at that time, was in Valencia inspecting its defenses. El Cid had died the previous year and his widow, Jimena, was governing the city.
In 1102, Alfonso VI sent troops to help Valencia against the Almoravid threat. The battle took place in Cullera and ended without a clear winner, although Valencia fell into Almoravid hands regardless because Alfonso decided it was too expensive to defend. Alfonso VI supervised the evacuation of Valencia in March and April and set fire to it before leaving; in May, the Almoravids took possession of the remains. The same year, he undertook the repopulation of Salamanca, which protected Coria, and Ávila, which defended the mountain pass that was more accessible from Guadarrama, trying to prepare for an eventual loss of Toledo. To protect the area from the east, in 1104 he besieged and conquered Medinaceli, a key location from which the region of Toledo could be attacked from the east along the valley of the Jalón River. In 1104, 1105, and 1106, the king made several incursions into Andalusian territory, reaching Málaga in 1106, and returned with many Mozarabs, who settled in his kingdom.
In 1108 the troops of the Almoravid Tamim, governor of Córdoba and son of Yusuf ibn Tashfin, attacked Christian territories, but this time the chosen city was not Toledo but Uclés. Alfonso VI was in Sahagún, recently married, elderly and with an old wound that prevented him from riding. Álvar Fáñez, governor of the lands of the Banu Di-l-Nun, was the commander of the army. He was accompanied by Sancho Alfónsez, the king's only son and heir. The armies clashed in the Battle of Uclés on 29 May 1108 and the Christian troops suffered another defeat. The young Sancho Alfónsez, heir to the throne, was killed in battle. As a consequence, the reconquista came to a 30-year standstill, and the County of Portugal eventually became an independent kingdom. The military situation was also serious since the Almoravids almost immediately seized the entire defensive border of the Tagus valley from Aranjuez to Zorita and there were uprisings of the Muslim population in this region.