The founding of Portugal: Afonso Henriques, 1128–1179

Portugal has no single birthday. It was founded in stages over about fifty years by one man, Afonso Henriques, its first king. The stages are a battle against his own mother in 1128, a victory over a Muslim army in 1139, recognition as king by his cousin, the king of León and Castile, in 1143, and recognition of the kingdom by the Pope in 1179.
If you are preparing for the Portuguese citizenship test, "history" is one of the subjects the law names, without a list of events — the general picture is in our guide to the new Portuguese citizenship test, and how to study history as a whole is in Portuguese history for the citizenship test. The founding is the safest place to start: every timeline of Portugal begins here, and the questions about it are mostly about telling apart names and dates that look alike.
- 1128, São Mamede: Afonso Henriques defeats his mother's side and takes over the County of Portugal.
- 1139, Ourique: a win against the Moors, after which he calls himself king.
- 1143, Zamora: his cousin Alfonso VII of León and Castile accepts him as king.
- 1179: Pope Alexander III's bull Manifestis Probatum recognises Portugal as a kingdom.
The Portuguese words you will meet
Questions are written in Portuguese, so learn the names in Portuguese. Condado Portucalense is the County of Portugal, the territory before it was a kingdom. D. before a name is Dom or Dona, the title of kings, queens and nobles. The kings of León you will read about are written Afonso VI and Afonso VII in Portuguese, even though English books call them Alfonso. And a bula is a papal bull — a formal letter from the Pope.
Where did Portugal come from?
At the end of the eleventh century, the land between the rivers Minho and Mondego belonged to the kingdom of León and Castile. King Alfonso VI gave it as a county to a knight from Burgundy, Count Henry — o conde D. Henrique — and married him to his daughter, Teresa. A county was not a country: the count ruled on behalf of the king of León.
Henry died in 1112, when his son Afonso was a small child. Teresa ruled in his place. The boy's name already tells the family story: Afonso after his grandfather, Henriques because he was Henry's son.
Why did the first king fight his mother?
Because of who she had allied with. Teresa had drawn close to the nobility of Galicia, to the north, and especially to the Galician count Fernão Peres de Trava. The local nobles backed her son instead. On 24 June 1128, at São Mamede near Guimarães, Afonso's forces won, and from then on he governed the county.
This is the question people least expect, which is exactly why it gets asked. If one of the options says "against the Moors", it is there to catch you. São Mamede was a family war.
The Portuguese state counts it as the beginning. A government resolution of July 2026 set up the national celebrations of the 900th anniversary of Portugal's founding, with the first milestone in 2028 — nine hundred years after São Mamede. Its own wording runs from 1128 to 1143:
…cujo processo seminal se iniciou com a Batalha de São Mamede de 1128, se afirmaria com a Batalha de Ourique de 1139 e se consolidou com o Tratado de Zamora de 1143.
In plain English: the process began at São Mamede in 1128, asserted itself at Ourique in 1139 and was consolidated at Zamora in 1143.
How did a count become a king?
By winning, then by being accepted. In 1139 Afonso Henriques defeated a Muslim army at Ourique, in the south. After that victory he began using the title rex — king. A legend grew around the battle much later: Christ appearing before it, and five Moorish kings defeated, which tradition links to the five blue shields on the Portuguese flag. You do not need to believe the legend, but you should recognise it, because it is the usual explanation of the flag's design.
Calling yourself king is one thing. In 1143, at Zamora, he met his cousin Alfonso VII of León and Castile, with a papal envoy present, and Alfonso VII accepted him as king. Portuguese questions call this the Tratado de Zamora, the Treaty of Zamora.
The last step was Rome. The same year, Afonso Henriques placed himself under the Pope's protection. The answer took thirty-six years: in May 1179, Pope Alexander III issued the bull Manifestis Probatum, recognising him as king and Portugal as a kingdom. The original is kept at the Torre do Tombo, the national archive in Lisbon.
So which year is the right answer?
| Year | What happened | Who recognised what |
|---|---|---|
| 1128 | Battle of São Mamede | Nobody yet — Afonso wins control of the county |
| 1139 | Battle of Ourique | Afonso calls himself king |
| 1143 | Zamora | A neighbouring king accepts the title |
| 1179 | Manifestis Probatum | The Pope accepts the kingdom |
School tradition says 1143. The strongest document is from 1179. The state's 900th anniversary counts from 1128. A well-written question tells you which event it means; if it asks about the treaty, it is 1143, and if it asks about the Pope, it is 1179.
What about Lisbon?
Lisbon came later, in 1147. That spring Afonso took Santarém; in the summer he besieged Lisbon with the help of English, Flemish and German crusaders who had stopped on their way to the Holy Land. The city surrendered in October after a siege of about four months.
Two traps here. First, 1143 and 1147 are often offered side by side — independence came first, Lisbon second. Second, taking Lisbon did not make it the capital: Afonso Henriques's court was in Coimbra, where he died in 1185 and where he is buried, in the monastery of Santa Cruz. Lisbon became the usual seat of the kingdom more than a century later, under King Afonso III.
What a question on this looks like
Expect short multiple-choice questions in Portuguese, with four options where the wrong ones are real names and dates from the same period. A typical one: «Na batalha de São Mamede (1128), contra quem lutou Afonso Henriques?» — "At the battle of São Mamede, whom did Afonso Henriques fight?" The options mix his mother, the Moors and foreign kings. Another: «Com que rei de Leão e Castela foi assinado o Tratado de Zamora?» — with both Afonso VI and Afonso VII offered.
Questions like these are not testing whether you have read a history book; they test whether you can keep five similar facts apart under time pressure. That is why the most efficient way to learn this period is in pairs: grandfather and cousin, mother and Moors, title and kingdom, independence and Lisbon.
One more name to recognise: Afonso Henriques is also called D. Afonso I, and his two nicknames are o Conquistador (the Conqueror) and o Fundador (the Founder). His son and successor was D. Sancho I — which is why "Sancho I" turns up as a wrong option when the question asks for the first king.
Common mix-ups
- VI / VIIAlfonso VI is the grandfather who gave the county away. Alfonso VII is the cousin who accepted Afonso Henriques as king in 1143.
- HenryCount Henry (conde D. Henrique) is the founder's father. Prince Henry the Navigator (Infante D. Henrique) lived almost three centuries later.
- 1128São Mamede was fought against his mother, not against the Moors.
- 1147Lisbon was conquered after independence, not at the same time — and did not become the capital then.
Where to go next
The house Afonso Henriques founded ruled until 1383; what came next is in Portugal's four royal dynasties. The free history flashcards are the quickest way to drill names that look alike until they stop blurring.
Then try the free practice quiz: twenty questions across the five themes, with the explanation shown after each answer.
