Before the crusade
For three centuries after 711, wars between Christians and Muslims in Iberia were wars between kingdoms. Chroniclers at the Asturian court, in the Chronicle of Alfonso III of the late 9th century, already wrote of a God-given duty to win back the land of the Goths. But no pope had promised anything to those who fought, and Christian kings fought each other, and allied with Muslim lords, as readily as they fought Córdoba.
That changed in the second half of the 11th century, as a reforming papacy claimed a greater say in the affairs of Christian kings. In 1063 Pope Alexander II wrote to knights setting out for Spain that they would be released from the penance for their sins. The next year an army of French, Norman, Aragonese and Catalan knights took the town of Barbastro, killing or enslaving many of its people. It was lost again in 1065. Historians still argue whether it should be called a crusade before the word.
As good as Jerusalem
Pope Urban II, who launched the First Crusade in 1095, already treated the Iberian frontier as part of the same cause. In 1089 he urged the counts of Catalonia to rebuild Tarragona, promising them the indulgence of a pilgrimage to Jerusalem. A few years later he told Catalan knights who had taken the cross for the East to stay and fight at home instead. His successor Paschal II forbade Iberians to leave for the Holy Land.
“It is no virtue to rescue Christians from the Saracens in one place, only to expose them to the tyranny and oppression of the Saracens in another.”
In 1123 Pope Calixtus II made the rule plain: those who fought in Spain earned the same remission of sins as those who went to Jerusalem, and the First Lateran Council of that year said the same. In 1147, during the Second Crusade, Pope Eugenius III extended the crusade to Iberia. That summer English, Flemish and German crusaders sailing east helped Afonso I of Portugal in the siege of Lisbon, while Genoese ships helped Alfonso VII take Almería.
Knights under vows
The crusade's most lasting product in Iberia was the military order: men who lived as monks and fought as knights. The Templars and Hospitallers, founded in the Holy Land, received castles in Aragon and Castile in the 12th century. Iberia then made its own. The Order of Calatrava was founded in 1158 to defend a castle the Templars had given up; the Order of Santiago followed in 1170, with Alcántara in Castile and Avis in Portugal soon after.
The orders held long stretches of the frontier, with their castles and their own settlers, and they grew into some of the greatest landowners of Castile. The crusade also gave kings money. From the 13th century popes granted the rulers of Castile a share of the church tithe, the tercias, and later the income from sales of crusade indulgences, the bula de la cruzada. Such grants helped pay for the conquest of Seville in 1248 and, much later, for the Granada War.
Holy war on both sides
Christian kings were not the only ones who spoke of holy war. The Almoravids, who crossed from Morocco in 1086, and the Almohads after them, presented their campaigns as jihad and accused the Andalusi rulers before them of neglecting it. In 1195 the Almohad caliph Abu Yusuf Yaqub al-Mansur crushed Alfonso VIII of Castile at Alarcos, and the defeat led Pope Innocent III to call a new crusade.
That crusade ended at Las Navas de Tolosa in July 1212, where Alfonso VIII, Peter II of Aragon and Sancho VII of Navarre defeated the caliph Muhammad al-Nasir. Thousands of knights had come from beyond the Pyrenees, but most of them went home before the battle, complaining of the heat and of Alfonso's letting the Muslim garrison of Calatrava go free. The victory was won chiefly by Iberian armies.
Crusade and its limits
The crusade never ruled Iberian politics alone. Ferdinand III took Córdoba and Seville under crusade bulls, yet he besieged Seville with the help of his vassal, Muhammad I of Granada. Castile and Aragon made long truces with Granada and with Morocco, and fought each other more often than either fought the Muslims. Popes complained that crusade money raised in Castile was spent on other wars.
Historians disagree on how much the crusade mattered. Some, such as Joseph O'Callaghan, argue that from the late 11th century the Iberian wars were crusades in the full sense, and that crusading ideas shaped the frontier until 1492. Others stress how late the popes came to a war that was already old, how often kings set religion aside, and how much of the fighting was about land, tribute and power. Most agree that the idea outlived the medieval wars: crusade bulls were still preached in Spain long after 1492.