|Battle of Ourique|
|Part of the Portuguese Reconquista|
"The Miracle of Ourique" by Domingos Sequeira (1793)
|County of Portugal||Almoravids|
|Commanders and leaders|
|Afonso Henriques||Ali ibn Yusuf|
|Casualties and losses|
Learning that during his Battle of Valdevez against Alfonso VII of León, Muslim forces had attacked and destroyed Leiria and Trancoso. Afonso Henriques's anxiety at this incursion at his southern frontier hastened his negotiations with Alfonso VII of León, leading to the Treaty of Zamora and freeing Afonso Henriques's troops to deal with the Muslim attack.
Historians are divided as to the location of this battle. At the time, the name "Ourique" designated a large area south of Beja. Since 12th century chroniclers were unfamiliar with the region where the battle took place, they might have decided to call the location "field of Ourique" for lack of a more precise term. Nonetheless, the great distance that separated Ourique from the Christian lines farther north has led some historians to suggest various localities in central Portugal, abandoning the traditional idea that the combat occurred in Ourique in the Alentejo. It would have been difficult for the then Count of Portugal, with a realm little beyond the Mondego River, to go all the way south to battle five Muslim Kings. One plausible alternative is Vila Chã de Ourique, located some ten miles from Santarém.
However, incursions by Christian armies deep in Muslim territory were not unheard-of. Alfonso VII had directed expeditions that had reached Cordoba and Seville, well beyond the limits of Castillian dominions, and in 1147 he managed to conquer the Mediterranean port of Almería, south of Granada. This was possible because the largest Almoravid armies were positioned at the frontier, while armies stationed in small towns would rather retreat into their castles than face a strong enemy force. It is not at all unfeasible that Afonso lead a raid into the Gharb, and then, while retreating, was intercepted by sizable Almoravid troops intending to crush his army.
Despite the fact that the Christian Portuguese forces were strongly outnumbered, the Muslim armies were weakened by internal leadership problems, which led to Afonso Henriques's victory and subsequently his proclamation as King of the Portuguese, as Afonso I, with the support from his troops, vanquishing and slaying, so legend says, five Muslim kings.
The earliest accounts provide little detail. In one account the Muslim forces are led by five Kings (Life of St. Theotonius), while in another, they are under the command of one King, Ismar (Chronicles). In the more detailed Chronicle of the Goths, Ismar waited until Henriques penetrated into Muslim territory, then systematically sent his troops from Seville, Badajoz, Elvas, Évora and Beja against the Portuguese count. Further, the Portuguese forces were surrounded on the hilltop where they encamped, Ismar hosted knights, who were executed later by Henriques, and that the Muslim king escaped in defeat. Arabic and Spanish accounts do not clarify the circumstances, and they even confuse the issue, identifying the Ismar as, alternatively, Ismar Abuzicri or Ismar and Abuzicri, with later historians identifying Abu Zakariya, the governor of Santarém, as the protagonist. It is also likely that the numbers were inflated by the chroniclers from a large-scale raid to grand assault by Muslim forces.
It was presumed that after his victory over the five Muslim kings, the nobles acclaimed Afonso Henriques as king. In reality, documents after his victory continued to refer to Henriques as Prince or Infante.
Immediately after the battle, Afonso Henriques is said to have called for the first assembly of the estates-general (Portuguese: Cortes Gerais) of Portugal at Lamego, where he was given the Crown from the Primate Archbishop of Braga, to confirm the Portuguese independence from the Kingdom of León. This was a patriotic falsification perpetuated by the clergy, nobility and supporters who promoted the Restoration of Portuguese sovereignty and the claims of John IV, after the Iberian Union. The documents that refer to the estates-general were "deciphered" by Cistercian monks from the Monastery of Alcobaça to perpetuate the myth and justify the legitimacy of the Portuguese crown in the 17th century. The author of this falsification was Oliveira Marques, and even in 1632 there were misgivings about the validity of the chronicler's account or the existence of the Cortes of Lamego The account continued to support the notion that in the 12th century a meeting of the Cortes occurred in the Church of Santa Maria de Almacave, in Lamego, in 1143. During this meeting, after being acclaimed by estates-general, Afonso Henriques accepted a group of laws on royal succession and excluded the Castilian line of Kings from the Portuguese throne, made provisions for the nobility, on justice and the independence of Portugal. But, even as Spanish jurists and diplomats later demonstrated that the document was uncreditable, the Portuguese defended the authenticity of the account. Alexandre Herculano later recounted the patriotic re-imagining in his História de Portugal, which caused its own controversy, and was later perpetuated by the writings of Alfredo Pimenta (who defended the existence of the Cortes of Lamego).
In commemoration of the Battle of Ourique, the first Portuguese coat-of-arms appeared that included five small shields, to represent the five defeated Muslim kings (from one interpretation), which was later challenged by many authors.
Some years later, the idea of a miraculous intervention in the battle by Saint James in favor of the Portuguese appeared in the chronicles of the battle. Saint James was widely venerated in Iberia (with a main center of veneration in Santiago de Compostela, in Galicia, where his tomb was believed to be located), being generally seen as the Matamouros (English: Moor-slayer). As a consequence of Portuguese independence this legend was embellished with time, in order to distance the Portuguese from Spanish devotional practices and beliefs. Later interpretations replaced Saint James with Saint George and, finally, with Jesus Christ.
In the legend, Afonso Henriques is visited before the battle by an old man who saw in a dream that Henriques would be victorious because God would intervene in his favour. He advised the nobleman to leave the encampment alone when he heard the bell of the local chapel. Riding off he was surprised by a ray of light that showed him (in one interpretation) the sign of the cross and Jesus Christ on a crucifix. Afonso Henriques knelt in its presence and heard the voice of Christ who told him he would defeat the Almoravids, which he, through courage and his faith, succeeded the following day.
The legend of the miracle of the Battle of Ourique served thus as a political instrument to defend Portuguese independence as divine will. Yet, the legend, possibly earlier, knows his first known record in the early 15th century by the monks of the Monastery of Santa Cruz, during the battles between John and the Kingdom of Castile. Some modern authors claim that it is a creation of the monks, or forged by these, while not presenting evidence to support their theory, being, according to others, a long popular and royal belief tradition. It was in 1419 that the legend first appeared in the Crónica de Portugal, and was accepted as fact, until Alexandre Herculano first reexamined the event, judging it a "pious fraud", in his investigation in the middle of the 19th century.
- Reilly, Bernard F. (1998), The Kingdom of León-Castilla under King Alfonso VII, 1126–1157, Philadelphia, Pennsylvania: University of Pennsylvania Press, pp. 70–71, ISBN 978-0-8122-3452-7
- Lay, S. (2008-11-28). The Reconquest Kings of Portugal: Political and Cultural Reorientation on the Medieval Frontier. Palgrave Macmillan UK. p. 81. ISBN 9780230583139. Retrieved 23 July 2018.
- Mattoso, p. 117.
- Ferreira 2010, p. 24.
- Livermore, p. 65.
- Mattoso, p. 118.
- Rabb 2008, p. 325.
- Ungewitter 2009, p. 67.
- Vincent 2006, p. xi.
- Ferreira 1990, p. 24.
- Livermore 1947, pp. 65–66.
- Ferreira 1990, p. 27.
- Brandão, friar António, Crónica de D. Afonso Henriques, Monarquia Lusitana, third.
- Ferreira 2010, pp. 27–28.
- Ferreira 1990, p. 28.
-  A Cristofania de Ourique Mito e Profecia - Manuel J. Gandra, Fundação Lusíada, 2002 ISBN 9789729450389
- Smith 1996, p. 63.
- Boiça, Joaquim; Mateus, Rui, História e histórias–Castro Verde [History and Stories: Castro Verde], Castro Verde, Portugal: Artinvento; Região de Turismo da Planicie Dourada; Câmara Municipal de Castro Verde, ISBN 978-972-97418-9-0
- Livermore, HV (1947), A History of Portugal, Pamphlet collection, Cambridge, England, UK: Cambridge University Press, pp. 64–66, ISBN 978-1-00-128780-5.
- Ferreira, João (2010), Histórias Rocambolescas da História de Portugal [Fantastic Stories of the History of Portugal] (6 ed.), Lisbon, Portugal: A Esfera dos Livros, ISBN 978-989-626-216-7
- Rabb, Kate Milner (2008), National Epics, ISBN 978-1-4086-8891-5
- Smith, Angel (1996), Mar-Molinero, Clare; Smith, Angel, eds., Nationalism and the Nation in the Iberian Peninsula: Competing and Conflicting Identities, Dulles, Virginia: Berg, ISBN 978-1-85973-175-8
- Ungewitter, FH (2009), Europe: Its Past and Present Condition, ISBN 978-1-113-71111-3
- Vincent, Benjamin (2006), A Dictionary of Biography – Past and Present – Containing the Chief Events in the Lives of Eminent Persons of All Ages and Nations. Preceded by the Biographies and Genealogies of the Chief Representatives of the Royal Houses of the World, ISBN 978-1-4067-9392-5
- Mattoso, José (2006), D. Afonso Henriques