A medieval Iberian kingdom that emerged from the County of Portugal and became an independent monarchy in the twelfth century.
The Kingdom of Portugal emerged from the County of Portugal in the twelfth century, breaking from Leonese overlordship under Afonso Henriques and building royal legitimacy through warfare, diplomacy, and papal recognition: victory over his mother's party at the Battle of São Mamede in 1128, the royal title assumed after the Battle of Ourique in 1139, Leonese recognition at the Treaty of Zamora in 1143, and the bull Manifestis Probatum from Rome in 1179.
Its medieval history was shaped by frontier expansion against Muslim-ruled al-Andalus — Lisbon taken with a crusader fleet in 1147, the Algarve completed by 1249, making Portugal the first Iberian kingdom to finish its Reconquista — by rivalry and marriage politics with León and Castile, by an Atlantic-facing commercial turn, and by the crisis of 1383–1385, when the towns and the Master of Aviz defended independence at the Battle of Aljubarrota and founded the dynasty that carried Portugal toward the ocean.
Portugal began as a Leonese frontier command. The county of Portucale — the lands around the old Suevic seats of Braga and Guimarães, between the Minho and the Douro — had been a hereditary march of the Asturian-Leonese kings since the ninth century; a second, grander county was created in 1096, when Alfonso VI of León-Castile granted the whole territory from the Minho toward the Tagus to the Burgundian crusader-knight Henry, Count of Portugal, and his wife Teresa of León, the king's favoured illegitimate daughter.
Henry defended the Almoravid frontier and stretched every ambiguity of his vassalage; after his death in 1112 Teresa ruled for their son and then for herself, styling herself queen from 1117. Her reliance on the Galician house of Traba turned the Portuguese baronage toward her son, and on 24 June 1128, at the Battle of São Mamede below Guimarães, the nineteen-year-old Afonso Henriques took the county from his mother's party.
The road from county to kingdom ran through victory and paperwork in equal measure: the royal style assumed after the Battle of Ourique against the Almoravids in July 1139; the Treaty of Zamora of October 1143, in which Alfonso VII of León recognised his cousin's kingship with a papal legate presiding; the same year's commendation of Portugal to Saint Peter for a census of four ounces of gold — an overlord safely in Rome invoked against the one in León; and at last Alexander III's bull Manifestis Probatum of 1179, which addressed Afonso as king outright and took his realm under apostolic protection.
Afonso Henriques spent a fifty-seven-year reign (1128–1185) turning title into territory. Santarém fell to escalade in March 1147; that summer a storm-diverted fleet of Second Crusade crusaders from England, Flanders, and the Rhineland joined the king before Lisbon, and the seventeen-week Siege of Lisbon ended in October with the great Tagus port in Portuguese hands. The Templars, Hospitallers, and the new Iberian orders of Avis and Santiago garrisoned the moving frontier; Muslim counter-attack under the Almohads took back much of the trans-Tagus in the 1190s, but the line held at the river.
His successors finished the peninsula's westernmost Reconquista. Sancho I of Portugal (1185–1211), "the Populator", chartered frontier towns and briefly held Silves with another crusader fleet in 1189; Afonso II of Portugal (1211–1223) issued the kingdom's first general laws at the cortes of Coimbra in 1211 and sent troops to the decisive peninsular victory of Las Navas de Tolosa in 1212; Sancho II conquered deep into the Alentejo before baronial and clerical revolt, blessed by Innocent IV, deposed him in 1245–1247; and his brother Afonso III of Portugal (1248–1279) took Faro in 1249, completing the conquest of the Algarve and fixing Portugal's continental borders essentially as they remain — the first Iberian kingdom to finish its share of the Reconquista.
The century closed with consolidation rather than conquest. Afonso III moved the court definitively to Lisbon, summoned townsmen to the cortes of Leiria in 1254 — among Europe's earliest — and his son Denis of Portugal (1279–1325) gave the kingdom its institutional maturity: the University founded at Lisbon in 1290, Portuguese made the language of the chancery, the treaty of Alcanizes with Castile in 1297 sealing the border, the Order of Christ created in 1319 to inherit the suppressed Templars' castles and wealth, pine forests planted for ship-timber, and a Genoese admiral, Manuel Pessanha, hired in 1317 to build a royal fleet.
The fourteenth century tested the structure. The Black Death of 1348 emptied fields and drove the crown's labour legislation (the Lei das Sesmarias of 1375); Afonso IV of Portugal (1325–1357) sent the fleet and knights that shared the great victory over the Marinids at Salado in 1340, while his court was stained by the murder of Inês de Castro, whose "reign" as posthumous queen under Pedro I became the kingdom's darkest royal legend. Ferdinand I of Portugal (1367–1383) fought three ruinous wars for the Castilian crown and built Lisbon's great wall, but left only a daughter married to the king of Castile.
His death in 1383 opened the succession crisis that defined late medieval Portugal. Against the regency of Leonor Teles and the claim of Juan I of Castile, the towns — Lisbon above all — rose for João, Master of Aviz, the old king's illegitimate half-brother. The Castilian siege of Lisbon broke on plague and resistance in 1384; the cortes of Coimbra proclaimed João king as John I of Portugal in April 1385; and on 14 August 1385, at the Battle of Aljubarrota, the new king and his constable Nuno Álvares Pereira destroyed the Castilian host with English archers in the line — independence saved, and the House of Aviz founded.
Aviz Portugal consolidated fast. The Treaty of Windsor of 1386 made the English alliance perpetual — Europe's oldest still in force — and John I's marriage to Philippa of Lancaster produced the "illustrious generation": Duarte the legislator-king, Pedro the travelled regent, and Henrique — Henry the Navigator — under whom the capture of Ceuta in 1415 and the Atlantic voyages that followed carried the medieval kingdom's frontier habit onto the ocean. By mid-century, with Madeira and the Azores settled and the African coast opening, the medieval kingdom had become the springboard of an early modern empire.
Portuguese kingship was hereditary in the Burgundian line from Afonso Henriques to 1383, and its authority grew through the king's ability to grant land, confirm municipal charters (forais), command frontier warfare, and bargain with nobles and bishops. The curia regia of magnates and prelates widened into the cortes — Coimbra 1211 hearing the first general laws, Leiria 1254 seating townsmen — where clergy, nobility, and town procurators were consulted on taxation, succession, and law; the crisis assemblies of 1385 at Coimbra showed the institution could make a king.
Royal centralisation advanced in waves against seigneurial and ecclesiastical immunity: Afonso II's confirmations and the first inquirições — sworn inquiries into usurped royal rights — under Afonso II and Afonso III; Denis's land law and vernacular chancery; the crown's long jurisdictional wars with the bishops, which put the realm under interdict more than once. The military orders held the southern castles as quasi-provinces, and their gradual domestication — above all the Order of Christ, founded 1319 as a royal instrument — turned crusading endowments into crown capacity.
Law and administration matured along the same arc: local custom and Visigothic inheritance codified through forais; royal judges (corregedores) riding circuit into private jurisdictions from the fourteenth century; and the kingdom's legislation gathered, just past the period's edge, into the Ordenações Afonsinas (1446) — the first great national law code of western Europe, the medieval monarchy's administrative summa.
Afonso I of Portugal (Afonso Henriques), 1139–1185 — founder: victor of São Mamede and Ourique, conqueror of Santarém and Lisbon, recognised at Zamora and by Manifestis Probatum.
Sancho I of Portugal, 1185–1211 — "the Populator": chartered towns, settled the interior, took Silves with the 1189 crusader fleet.
Afonso II of Portugal, 1211–1223 — first general laws at the 1211 cortes of Coimbra; sent the Portuguese contingent to Las Navas de Tolosa; began the inquirições into royal rights.
Afonso III of Portugal, 1248–1279 — completed the conquest of the Algarve at Faro in 1249; moved the court to Lisbon; seated townsmen in the cortes of Leiria in 1254.
Denis of Portugal, 1279–1325 — lawgiver and planter: the university (1290), Portuguese as chancery language, the treaty of Alcanizes (1297), the Order of Christ (1319), forests and fleet.
Afonso IV of Portugal, 1325–1357 — victor with Castile at the Salado in 1340; his reign carries the tragedy of Inês de Castro.
Ferdinand I of Portugal, 1367–1383 — the Fernandine wars with Castile and Lisbon's new wall; his death opened the succession crisis.
John I of Portugal, 1385–1433 — Master of Aviz, victor of Aljubarrota, husband of Philippa of Lancaster, conqueror of Ceuta: founder of the dynasty that made the ocean Portuguese.