Birth and early years The son of
Ferdinand I, King of León and Count of Castile and his wife, Queen Sancha, Alfonso was a "Leonese
infante [prince] with Navarrese and Castilian blood". His paternal grandparents were
Sancho Garcés III,
king of Pamplona and his wife
Muniadona of Castile, and his maternal grandparents were
Alfonso V of León (after whom he was probably named) and his first wife
Elvira Menéndez. The year of Alfonso's birth is not recorded in the medieval documentation. According to one of the authors of the
Anonymous Chronicle of Sahagún, who met the monarch and was present at his death, he died at age 62 after reigning 44 years. This indicates that he was born in the second half of 1047 or in the first half of 1048.
Pelagius of Oviedo wrote that Alfonso was 79 when he died, but that would place his birth around 1030, before his parents' marriage. According to the
Historia silense, the eldest child of Ferdinand I and Sancha, a daughter called
Urraca, was born when her parents were still
Count and Countess of Castile, so her birth could be placed in 1033–34. The second child and eldest son,
Sancho, must have been born in the second half of 1038 or in 1039. The third child and second daughter,
Elvira, may have been born in 1039–40, followed by Alfonso in 1040–41, and finally the youngest of the siblings,
García, sometime between 1041 and 24 April 1043, the date on which King Ferdinand I, in a donation to the
Abbey of San Andrés de Espinareda, mentions his five children. All of them except Elvira signed a document in the monastery of
San Juan Bautista de Corias on 26 April 1046. All the children of King Ferdinand I, according to the
Historia silense, were educated in the
liberal arts, and the sons were also trained in arms, the "art of running horses in the Spanish usage", and hunting. The cleric
Raimundo was in charge of Alfonso's early education. Once king, Alfonso appointed him
Bishop of Palencia and referred to him as
magistro nostro, viro nobile et Deum timenti ("our master, a noble man who fears God"). Alfonso probably spent long periods in
Tierra de Campos, where, along with
Pedro Ansúrez, the son of Ansur Díaz and nephew of Count Gómez Díaz de Saldaña (both members of the
Banu Gómez lineage), he learned the art of war and what was expected of a knight.
Ascension to the throne As the second son of the king of León and count of Castile, Alfonso would not have been entitled to inherit the throne. At the end of 1063, probably on 22 December, taking advantage of the fact that numerous
magnates had gathered in
León, capital of the kingdom, for the consecration of the
Basílica of San Isidoro, Ferdinand I summoned a
Curia Regia to make known his testamentary dispositions, under which he decided to distribute his patrimony among his children, a distribution that would not become effective until the death of the monarch in order to prevent any disputes arising after his death: around 1065: • Alfonso inherited the
Kingdom of León, "the most extensive, valuable and emblematic part: the one that contained the cities of
Oviedo and
León, cradles of the Asturian-Leonese monarchy", which included
Asturias, León,
Astorga,
El Bierzo,
Zamora with
Tierra de Campos as well as the
parias of the
Taifa of Toledo. • His elder brother,
Sancho, was given the
Kingdom of Castile, created by his father for him, and the
parias of the
Taifa of Zaragoza. • His younger brother,
García, received the entire region of
Galicia, "elevated to the rank of kingdom" that extended south to the
Mondego River in
Portugal with the
parias of the
Taifa of Badajoz and
Seville. • Their sisters,
Urraca and
Elvira, both received the
Infantazgo, that is, "the patronage and income of all the monasteries belonging to the royal patrimony" on the condition that they remained unmarried. The historian Alfonso Sánchez Candeira suggests that the reasons leading King Ferdinand I to divide the kingdom (with Alfonso VI inheriting the royal title) are unknown, but the distribution was probably made because the king considered it proper that each son should inherit the region where he had been educated and spent his early years.
Reign Consolidation of the throne (10651072) 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.{{cite book |last= Peña Pérez|first=F. Javier |date=2003 |chapter= Los monjes de San Pedro de Cardeña y el mito del Cid|title= Memoria, mito y realidad en la historia medieval|trans-title=Memory, Myth and Reality in Medieval History |url=https://dialnet.unirioja.es/descarga/articulo/814545.pdf 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.
Territorial expansion (10721086) Now established on the Leonese throne, and with the title of "Emperor", a relic of the
Gothic tradition, 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 1074, 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 ()—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.
Almoravid invasions (10861109) 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.
Succession crisis Alfonso VI, already old, had to deal with the problem of his succession. Berta had died without giving him an heir at the end of 1099; shortly after, Alfonso married Isabel who gave him two daughters, but no sons. To further complicate the situation, in March 1105 his grandson
Alfonso Raimúndez, son of Urraca and Raymond of Burgundy, was born, a possible contender to the throne in detriment to Sancho Alfónsez, the king's son with Zaida. Montenegro thinks that Alfonso VI legitimized Sancho probably coinciding with the meeting of a council in
Carrión de los Condes in January 1103 because from that date onwards, Sancho began to confirm royal charters before his brothers-in-law Raymond and Henry of Burgundy. In May 1107, Alfonso imposed the recognition of Sancho as heir, despite the probable opposition of his daughters and sons-in-law, in the course of a
Curia Regia held in León. The situation improved for the king with the death of Raymond of Burgundy in September and the agreement with Urraca so that she remained as sovereign Lady of Galicia, except in the case of remarrying since, in that case, Galicia would pass to her son. The death of Sancho in the Battle of Uclés on 29 May 1108 left Alfonso VI without his only male heir. He then chose his eldest legitimate daughter Urraca as his successor, but decided to marry her to his rival and famous warrior King
Alfonso I of Aragon and Navarre in the autumn of 1108. Although the marriage was celebrated at the end of the following year, it did not lead to the expected stability, but to a long civil war that lasted eight years.
Death and burial Alfonso VI died in
Toledo on 1 July 1109. The king had come to the city to try to defend it from an imminent Almoravid attack. His body was taken to the locality of
Sahagún, and was buried in the Royal Monastery of San Benito, thus fulfilling the wishes of the monarch. The mortal remains of the king were deposited in a stone sepulchre, which was placed at the feet of the church of the Royal Monastery, until the reign of
Sancho IV, who deemed it unseemly that his ancestor was buried at the foot of the temple and ordered the tomb to be moved inside and placed in the church's transept, near the tomb of Beatriz, Dowager Lady of Los Cameros and daughter of Infante
Frederick of Castile who had been executed by orders of his brother, King
Alfonso X the Wise in 1277. The sepulchre that contained the remains of the king, now having disappeared, was supported on alabaster lions, and was a large ark of white marble, eight feet long and four wide and tall, being covered by a smooth black lid. The tomb was usually covered by a silk tapestry, woven in
Flanders, bearing the image of the king crowned and armed, with the representation of the arms of Castile and León on the sides, and a crucifix at the head of the tomb. The tomb that contained the remains of Alfonso VI was destroyed in 1810, during the fire at the Royal Monastery of San Benito. The mortal remains of the king and those of several of his wives were collected and preserved in the abbey chamber until 1821, when the monks were expelled, and were then deposited by the abbot Ramón Alegrías in a box, which was placed in the southern wall of the chapel of the Crucifix until January 1835, when the remains were collected again and placed in another box and taken to the archive where the remains of the wives of the sovereign were at that time. The purpose was to place all the royal remains in a new sanctuary that was being built at that time. However, when the Royal Monastery of San Benito was dissolved in 1835, the monks delivered the two boxes with the royal remains to a relative of one of them, who kept it hidden until 1902, when these were discovered by Rodrigo Fernández Núñez, a professor at the Institute of Zamora Rodrigo. The mortal remains of Alfonso VI are now in the Monastery of the Benedictine nuns of Sahagún, at the foot of the temple, in a smooth stone ark and with a cover of modern marble, and in a nearby sepulchre, equally smooth, lie the remains of several of the king's wives. ==Wives, concubines and issue==