# Portugal in the Middle Ages

The Kingdom of Portugal was established from the county of Portugal in the 1130s, ruled by the Portuguese House of Burgundy. During most of the 12th and 13th centuries, its history is chiefly that of the gradual reconquest of territory from the various Muslim principalities (taifas) of the period.
This process was essentially complete with the ascension of Afonso III of Portugal, the first to claim the title of King of Portugal and the Algarve. The history of Portugal in the period between the death of Afonso III in 1279 and the beginning of the Portuguese Empire in 1415 includes the 1383–1385 Portuguese interregnum and the subsequent transition from the Portuguese House of Burgundy to the House of Aviz.

## Background

Towards the close of the 11th century crusading knights came from every part of Europe to aid the kings of León, Castile and Aragon in fighting the Moors. Among these adventurers was Henry of Burgundy, who, in 1095, married Teresa of León, illegitimate daughter of Alfonso VI of León and Castile. The County of Portugal was included in Teresa's dowry. Count Henry ruled as a vassal of Alfonso VI, whose Galician marches were thus secured against any sudden Moorish raid. But in 1109 Alfonso VI died, bequeathing all his territories to his legitimate daughter, Urraca of León, and Count Henry at once invaded León, hoping to add it to his own dominions at the expense of his suzerain.
After three years of war against Urraca and other rival claimants to the throne of León, Count Henry himself died in 1112, leaving his widow Teresa to govern Portugal north of the Mondego during the minority of her infant son, Afonso Henriques; south of the Mondego, the Moors still ruled.
Teresa renewed the struggle against her half-sister and suzerain Urraca in 1116–1117, and again in 1120; in 1121 she was besieged in Lanhoso and captured. But a peace was negotiated (Treaty of Lanhoso) by the archbishops Diego Gelmírez and Burdino of Braga, rival churchmen whose wealth and military resources enabled them to dictate terms. Bitter jealousy existed between the two prelates, each claiming to be primate "of all Hispania", and their antagonism had some historical importance insofar as it fostered the growth of separatist tendencies among the Portuguese. But the quarrel was temporarily suspended because both Gelmires and Burdino, virtually princes within their territories, had reason to dread the extension of Urraca's authority. It was arranged that Teresa should be liberated and should continue to hold the county of Portugal as a fief of León. During the next five years she lavished wealth and titles upon her lover, Fernando Pérez de Traba, count of Trava, thus estranging her son, the archbishop of Braga and the nobles.
Meanwhile, her son Afonso Henriques (meaning "Afonso son of Henry") thrived. The boy, probably born around 1109, followed his father as Count of Portugal in 1112, under the tutelage of his mother. The relations between Teresa and her son Afonso proved difficult. Only eleven years old, Afonso already had his own political ideas, greatly different from his mother's. In 1120, the young prince took the side of the archbishop of Braga, a political foe of Teresa, and both were exiled by her orders. Afonso spent the next years away from his own county, under the watch of the bishop. In 1122 Afonso became fourteen, the adult age in the 12th century. He made himself a knight on his own account in Zamora Cathedral, raised an army, and proceeded to take control of his lands. Near Guimarães, at the Battle of São Mamede (1128) he overcame the troops under his mother's lover and ally, Count Fernando Pérez de Traba, making her his prisoner and exiling her forever to a monastery in León. She died there in 1130. Thus Afonso become sole ruler (Duke of Portugal) after demands for independence from the county's people, church and nobles. He also vanquished Alfonso VII of León and Castile, his nominal suzerain, and thus freed the county from political dependence on the crown of León. On April 6, 1129, Afonso Henriques dictated the writ in which he proclaimed himself Prince of Portugal.
Afonso then turned his arms against the persistent problem of the Moors in the south. His campaigns were successful and, on July 25, 1139, he obtained an overwhelming victory in the Battle of Ourique, and straight after was unanimously proclaimed King of Portugal by his soldiers. This meant that Portugal was no longer a vassal county of León, but an independent kingdom in its own right. That he then convened the first assembly of the estates-general at Lamego (wherein he would have been given the crown from the Archbishop of Braga, to confirm the independence) is likely to be a 17th-century embellishment of Portuguese history.
Independence, however, was not a thing a land could choose on its own. Portugal still had to be acknowledged by the neighbouring lands and, most importantly, by the Catholic Church and the Pope. Afonso wed Matilda of Savoy, daughter of Amadeus III, Count of Savoy, and sent ambassadors to Rome to negotiate with the Pope. In Portugal, he built several monasteries and convents and bestowed important privileges to religious orders. In 1143, he wrote to Pope Innocent II to declare himself and the kingdom servants of the Church, swearing to pursue driving the Moors out of the Iberian Peninsula. Bypassing any king of Castile or León, Afonso declared himself the direct vassal of the Papacy. Thus, Afonso continued to distinguish himself by his exploits against the Moors, from whom he wrested Santarém and Lisbon in 1147. He also conquered an important part of the land south of the Tagus River, although this was lost again to the Moors in the following years.
Meanwhile, King Alfonso VII, Afonso's cousin, regarded the independent ruler of Portugal as nothing but a rebel. The conflict between the two was constant and bitter in the following years. Afonso became involved in a war, taking the side of the Aragonese king, an enemy of Alfonso VII. To ensure the alliance, his son Sancho was engaged to Dulce, sister of the Count of Barcelona and princess of Aragon. Finally, in 1143, the Treaty of Zamora established peace between the cousins and the recognition by the Kingdom of León that Portugal was an independent kingdom.
Afonso was occupied in almost incessant border fighting against his Christian or Moorish neighbours. Twelve years of campaigning on the Galician frontier were concluded in 1143 by the Treaty of Zamora, in which Afonso was recognized as independent of any other Iberian sovereign, although he promised to be a faithful vassal of the Pope and to pay him a yearly tribute of four ounces of gold. In 1167, however, the war was renewed. Afonso succeeded in conquering part of Galicia, but in attempting to capture the frontier fortress of Badajoz he was wounded and forced to surrender to Ferdinand II of León (1169). Ferdinand was his son-in-law and was probably disposed to leniency by the imminence of a Moorish invasion in which Portugal could render useful assistance. Afonso was therefore released under a promise to abandon all his conquests in Galicia.
In 1179 the privileges and favours given to the Roman Catholic Church were compensated. In the papal bull Manifestis Probatum, Pope Alexander III acknowledged Afonso as King and Portugal as an independent land with the right to conquer lands from the Moors. With this papal blessing, Portugal was at last secured as a country and safe from any Leonese attempts at annexation.
In 1184, in spite of his great age, King Afonso of Portugal still had sufficient energy to relieve his son Sancho, who was besieged in Santarém by the Moors. He died shortly after, on December 6, 1185.

## Reconquista in Portugal

Afonso had already won many victories over the Moors. At the beginning of his reign the religious fervor which had sustained the Almoravid dynasty was rapidly subsiding; in Portugal independent Moorish chiefs ruled over cities and petty taifa states, ignoring the central government; in Africa the Almohades were destroying the remnants of the Almoravide power. Afonso took advantage of these dissentions to invade Alentejo, reinforced by the Templars and the Knights Hospitaller, whose respective headquarters were at Tomar and Soure.
On July 25, 1139 he defeated the combined forces of the Moors on the plains of Ourique, in Alentejo. Legend has magnified the victory into the rout of 200,000 Muslims under five kings; but so far was the battle from being decisive that in 1140 the Moors were able to seize the fortress of Leiria, built by Afonso in 1135 as an outpost for the defence of Coimbra, his capital. In 1144 they defeated the Templars at Soure. But on March 15, 1147 Afonso stormed the fortress of Santarém, and about the same time a band of crusaders on their way to Palestine landed at Porto on 16 June 1147, and volunteered for the impending siege of Lisbon. Among them were many "Franks" from France, England, Flanders and German states, who were afterwards induced to settle in Portugal. Aided by these powerful allies, Afonso captured Lisbon on October 24, 1147.
This was the greatest military achievement of his reign. The Moorish garrisons of Palmela, Sintra and Almada soon capitulated, and in 1158 Alcácer do Sal, one of the chief centres of Moorish commerce, was taken by storm. At this time, however, the Almohad Caliphate had triumphed in Africa and invaded the Iberian Peninsula, where they were able to check the Portuguese reconquest, although isolated bands of crusading adventurers succeeded in establishing themselves in various cities of Alentejo. The most famous of these free-lancers was Gerald the Fearless, who captured Évora in 1165.
In 1171 Afonso concluded a seven years truce with the Moors; weakened by his wound and by old age, he could no longer take the field, and when the war broke out afresh he delegated the chief command to his son Sancho. Between 1179 and 1184 the Moors retrieved many of their losses in Alentejo, but were unable to retake Santarém and Lisbon. In 1179, by the papal bull Manifestis Probatum, Pope Alexander III acknowledged Portugal as an independent nation and Afonso and his heirs as her rightful kings. Afonso died on December 6, 1185. He had secured for Portugal both the status and the name of an independent kingdom, and had extended its frontier southwards from the Mondego to the Tagus. He had laid the foundation of its navy and had strengthened, if he did not inaugurate, that system of co-operation between the Crown and the military orders which afterwards proved of incalculable service in the maritime and colonial development of the nation.
Sancho I continued the war against the Moors with varying fortune. In 1189 he won Silves, then the capital of Algarve; in 1192 he lost not only Algarve but the greater part of Alentejo, including Alcácer do Sal, to the Almohads. A peace was then arranged.
For the next eight years, Sancho was engaged in hostilities against Alfonso IX of León. The motives and course of this indecisive struggle are obscure. It ended in 1201, and the last decade of Sancho's reign was a period of peaceful reform which earned for the king his popular name of o Povoador, "the Populator".
He granted fresh charters to many cities, legalizing the system of self-government which the Romans had bequeathed to the Visigoths and the Moors had retained or improved. Lisbon had already (1179) received a charter from Afonso I. Sancho also endeavoured to foster immigration and agriculture, by granting estates to the military orders and municipalities on condition that the occupiers should cultivate or colonize their lands. Towards the close of his reign he became embroiled in a dispute with Pope Innocent III. He had insisted that priests should accompany their flocks in battle, had made them amenable to secular jurisdiction, had withheld the tribute due to Rome and had even claimed the right of disposing of ecclesiastical domains. Finally he had quarreled with Martinho Rodrigues, the unpopular bishop of Porto, who was besieged for five months in his palace and then forced to seek redress in Rome (1209). As Sancho was in weak health and had no means of resisting Papal pressure, he made full submission (1210); and after bestowing large estates on his sons and daughters, he retired into Alcobaça Monastery, where he died in March 1211.

## Afonso II

The reign of Afonso II is noteworthy for the first meeting of the Portuguese Cortes, to which the upper hierarchy of the Church and the nobles (fidalgos and ricos homens) were summoned by royal writ. The king (1211–1223), was no warrior, but in 1212 a Portuguese contingent aided the Castilians to defeat the Moors in the Battle of Las Navas de Tolosa, and in 1217 the ministers, bishops and captains of the realm, reinforced by foreign crusaders, retook Alcácer do Sal.
Afonso II repudiated the will of his father, refused to surrender the estates left to his brothers, who went into exile, and only gave up the property bequeathed to his sisters after a prolonged civil war in which Alfonso IX of León took part against them. Even then he compelled the heiresses to take the veil. His attempts to strengthen the monarchy and fill the treasury at the expense of the Church resulted in his excommunication by Pope Honorius III, and Portugal remained under interdict until Afonso II died on 25 March 1223.

## Sancho II

Sancho II succeeded at the age of thirteen. To secure the removal of the interdict the leading statesmen who were identified with the policy of his father Gonçalo Mendes the chancellor, Pedro Annes, the lord chamberlain (mordomo-mor), and Vicente, dean of Lisbon, resigned their offices. Estêvão Soares, archbishop of Braga, placed himself at the head of the nobles and churchmen who threatened to usurp the royal power during Sancho II's minority, and negotiated an alliance with Alfonso IX, by which it was arranged that the Portuguese should attack Elvas, the Castilians Badajoz.
Elvas was taken from the Moors in 1226, and in 1227 Sancho assumed control of the kingdom. He reinstated Pedro Annes, made Vicente chancellor, and appointed Martim Annes chief standard-bearer (alferes mor), i.e., the chief military official. He continued the crusade against the Moors, who were driven from their last strongholds in Alentejo, and in 1239–1244, after a dispute with Rome which was once more ended by the imposition of an interdict and the submission of the Portuguese ruler, he won many successes in the Algarve. But his career of conquest was cut short by a revolution (1245), for which his marriage to a Castilian lady, Mécia Lopes de Haro, furnished a pretext.
The legitimacy of the union has been questioned, on grounds which appear insufficient; but of its unpopularity there can be no doubt. The bishops, resenting the favour shown by Sancho to his father's anti-clerical ministers, took advantage of this unpopularity to organize the rebellion. They found a leader in Sancho's brother Afonso, count of Boulogne, who owed his title to a marriage with Matilda, countess of Boulogne. The pope issued a bull of deposition in favour of Afonso, who reached Lisbon in 1246; and after a civil war lasting two years Sancho II retired to Toledo, where he died in January 1248.

## Afonso III

One of the first acts of the usurper, and one of the most important, was to abandon the semi-ecclesiastical titles of visitor (visitador) or defender (curador) of the realm, and to proclaim himself king. Hitherto the position of the monarchy had been precarious; as in Aragon the nobles and the church had exercised a large measure of control over their nominal head, and though it would be pedantry to over-emphasize the importance of the royal title, its assumption by Afonso III does mark a definite stage in the evolution of a national monarchy and a centralized government.
A second stage was reached shortly afterwards by the conquest of Algarve, the last remaining stronghold of the Moors. This drew down upon Portugal the anger of Alfonso X of Castile, nicknamed the Wise, who claimed suzerainty over Algarve. The war which followed was ended by Afonso III consenting to wed Beatriz de Guzmán, illegitimate daughter of Alfonso X, and to hold Algarve as a fief of Castile. The celebration of this marriage, while Matilda, countess of Boulogne and first wife of Afonso III, was still alive, entailed the imposition of an interdict upon the kingdom. In 1254 Afonso III summoned cortes to Leiria, in which the chief cities were represented, as well as the nobles and clergy.
Fortified by their support the king refused to submit to Rome. At the cortes of Coimbra (1261), he further strengthened his position by conciliating the representatives of the cities, who denounced the issue of a debased coinage, and by recognizing that taxation could not be imposed without consent of the cortes. The clergy suffered more than the laity under a prolonged interdict, and in 1262 Pope Urban IV legalized the disputed marriage and legitimized Denis (future king Denis), the king's eldest son. Thus ended the contest for supremacy between Church and Crown.
The monarchy owed its triumph to its championship of national interests, to the support of the municipalities and military orders, and to the prestige gained by the royal armies in the Moorish and Castilian wars. In 1263 Alfonso X renounced his claim to suzerainty over the Kingdom of the Algarve. Lisbon was henceforth recognized as the capital. Afonso III continued to reign until his death on 16 February 1279, but the peace of his later years was broken by the rebellion (1277–1279) of Denis.

## Denis I

The chief problems now confronting the monarchy were no longer military, but social, economic and constitutional. The reign of Denis was not a period of uninterrupted peace. At the outset his legitimacy was disputed by his brother Afonso, and a brief civil war ensued. Hostilities between Portugal and the reunited kingdoms of León and Castile were terminated in 1297 by a treaty of alliance, in accordance with which Ferdinand IV of Castile married Constance, daughter of Denis, while Afonso, son of Denis, married Beatrice of Castile, daughter of Ferdinand. A further outbreak of civil war, between the king and the heir-apparent, was averted in 1293 by the queen-consort Elizabeth of Portugal, who had married Denis in 1281, and was canonized for her many virtues in the 16th century. She rode between the hostile camps, and succeeded in arranging an honourable peace between her husband and her son.
These wars were too brief to interfere seriously with the social reconstruction to which the king devoted himself. At his accession the Portuguese people was not homogeneous; it was a long process in which its component peoples "Moors and Mozarabs of the south, Galicians of the north, Jews and foreign crusaders" would be fused into one nationality. King Denis ordered the construction of numerous castles, created new towns, and granted privileges due cities to several others. The process of settlement of the south and some parts of the interior by northern Portuguese, carried out by his predecessors, had a great development in his reign and the new lands were populated. There were also urgent economic problems to be solved. The Moors had made Alentejo the granary of Portugal, but war had undone their work, and large tracts of land were now barren and depopulated. Commerce and education had similarly been subordinated to the struggle for national existence. The machinery of administration was out of date and complicated by the authority of feudal and ecclesiastical courts. The supremacy of the Crown, though recognized, was still unstable. It was Denis who initiated the needful reforms. He earned his title of the rei lavrador or "farmer king" by introducing improved methods of cultivation and founding agricultural schools. He encouraged maritime trade by negotiating a commercial treaty with England (1294) and forming a royal navy (1317) under the command of a Genoese admiral named Emanuele Pessagno (Manuel Pessanha). In 1290 he founded the University of Coimbra, which began its existence in Lisbon and was transferred to Coimbra in 1308 and moved definitively in 1537. He was a poet and a patron of literature and music, proclaiming Portuguese to be the language of the state. His chief administrative reforms were designed to secure centralized government and to limit the jurisdiction of feudal courts. He encouraged and nationalized the military orders. In 1290 the Portuguese knights of the Order of Santiago were definitely separated from the parent Castilian order. The Knights Hospitaller in Portugal and the Order of Saint Benedict of Aviz had already been established, the traditional dates of their incorporation being 1113 and 1162. After the condemnation of the Templars by Pope Clement V (1312) an ecclesiastical commission investigated the charges against the Portuguese branch of the order, and found in its favour. As the Templars were rich, influential and loyal, Denis took advantage of the death of Clement V. to maintain the order under a new name; the Order of Christ, as it was henceforth called, received the benediction of the pope in 1319 and subsequently played an important part in the colonial expansion of Portugal.

## Afonso IV

Afonso IV adhered to the matrimonial policy initiated by Dinis. He arranged that his daughter Maria should wed Alfonso XI of Castile (1328), but the marriage precipitated the war it was intended to avert, and peace was only restored (1330) after Queen Isabella had again intervened. Peter, the heir, afterwards married Constance, daughter of the duke of Peñafiel (near Valladolid), and Afonso IV brought a strong Portuguese army to aid the Castilians against the Moors of Granada and their African allies. In the victory won by the Christians on the banks of the river Salado, near Tarifa, he earned his title of Afonso the Brave (1340). In 1347 he gave his daughter Eleanor in marriage to Peter IV of Aragon. The later years of his reign were darkened by the tragedy of Inês de Castro. He died in 1357.

## Peter I

Peter's particular fancy was the administration of justice, which he frequently did in person and with considerable cruelty. The first act of Peter I of Portugal, was to take vengeance on the murderers of Inês de Castro. Throughout his reign he strengthened the central government at the expense of the aristocracy and the Church, by a stern enforcement of law and order. In 1361, at the Cortes of Elvas, it was enacted that the privileges of the clergy should only be deemed valid insofar as they did not conflict with the royal prerogative. Peter maintained friendly relations with England, where in 1352 Edward III issued a proclamation in favour of Portuguese traders, and in 1353 the Portuguese envoy Afonso Martins Alho signed a covenant with the merchants of London, guaranteeing mutual good faith in all commercial dealings.
The foreign policy of Denis, Afonso IV and Peter I had been, as in rule, successful in its main object, the preservation of peace with the Christian kingdoms of Iberia; in consequence, the Portuguese had advanced in prosperity and culture. They had supported the monarchy because it was a national institution, hostile to the tyranny of nobles and clergy. During the reign of Ferdinand (1367–1383) and under the regency of Leonora the ruling dynasty ceased to represent the national will; the Portuguese people therefore made an end of the dynasty and chose its own ruler. The complex events which brought about this crisis may be briefly summarized.

## Ferdinand I

Ferdinand I, claimed the thrones of León and Castile, left vacant by the death of King Peter of Castile (1369); he based his claim on the fact that his grandmother Beatrice (1367–1385) belonged to the legitimate line of Castile. When the majority of the Castilian nobles refused to accept a Portuguese sovereign, and welcomed the former king's illegitimate half-brother as Henry II of Castile, Ferdinand allied himself with the Moors and Aragonese; but in 1371 Pope Gregory XI intervened, and it was decided that Ferdinand should renounce his claim and marry Eleanor, the daughter of his successful rival.
Ferdinand, however, preferred his Portuguese mistress, Leonor Telles de Menezes, whom he eventually married. To avenge this slight, Henry of Castile invaded Portugal and besieged Lisbon. Ferdinand appealed to John of Gaunt, who also claimed the throne of Castile, on behalf of his wife, Infanta Constance of Castile, daughter of Peter of Castile. An alliance between Portugal and England was concluded; and although Ferdinand made peace with Castile in 1374, he renewed his claim in 1380, after the death of Henry of Castile, and sent João Fernandes Andeiro, count of Ourém, to secure English aid. In 1381 Richard II of England despatched a powerful force to Lisbon, and betrothed his cousin Prince Edward to Beatrice, only child of Ferdinand, who had been recognized as heiress to the throne by the Cortes of Leiria (1376). In 1383, Ferdinand made peace with John I of Castile at Salvaterra, deserting his English allies, who retaliated by ravaging part of his territory. By the Treaty of Salvaterra it was agreed that Beatrice should marry John I. Six months later Ferdinand died, and in accordance with the terms of the treaty Leonor became regent until the eldest son of John I and Beatrice should be of age.

## Portuguese Interregnum

Leonor had long carried on a relationship with the count of Ourém, who engaged in various intrigues with England and Castile, and whose influence was resented by the leaders of the aristocracy, while her tyrannical rule also aroused Rebellion of bitter opposition. The malcontents chose D. John, 1383. grand-master of the knights of Aviz and illegitimate son of Peter I, as their leader, organized a revolt in Lisbon, and assassinated the count of Ourém within the royal palace (December 6, 1383). Leonora fled to Santarém and summoned aid from Castile, while D. John was proclaimed defender of Portugal. In 1384 a Castilian army invested Lisbon, but encountered a heroic resistance, and after five months an outbreak of plague compelled them to end the siege, John I of Castile, discovering or alleging that Leonor had plotted to poison him, imprisoned her in a convent at Tordesillas, where she died in 1386.
In 1384, Nuno Álvares Pereira, future constable of Portugal, defeated the invaders, at the Battle of Atoleiros.

## John I

On April 16, 1385, João das Regras showed at the Cortes assembled in Coimbra that they had the right to choose John of Aviz as their new king. John (or João) was then elected king of Portugal. One of the most important events in the history of the Portuguese Cortes was the Cortes of Coimbra, which definitely affirmed the national character of the monarchy. The choice of the grand-master of Aviz ratified the old alliance between the Crown and the military orders; his election by the whole Cortes not only ratified the alliance between the Crown and the commons, but also included the nobles and the Church.
Ferdinand had been the last legitimate descendant of Count Henry of Burgundy. With John I began the rule of a new dynasty, the House of Aviz. The most urgent matter which confronted the king or the group of statesmen, led by João das Regras and the constable who inspired his policy was the menace of Castilian aggression. John of Castile marched into Portugal with a large army in August 1385. But on August 14, the much-outnumbered Portuguese, aided by 500 English archers, utterly defeated the Castilians and their French allies at Aljubarrota. By this victory the Portuguese showed themselves equal in military power to their strongest rivals in the Peninsula. In October the constable invaded Castile and won another victory at Valverde. Early the next year, John of Gaunt and 5,000 English reinforcements arrived to aid John I. Together they launched another counter-invasion of Castile, but the campaign proved abortive. By the treaty of Windsor (May 9, 1386), the alliance between Portugal and England was confirmed and extended. Against such a combination the Castilians were powerless; Denis, eldest son of Inês de Castro, claimed the Portuguese throne and invaded Portugal in 1398, but his troops were easily crushed. A treaty was arranged in 1387 and renewed at intervals until peace was concluded with the Treaty of Ayllón, 1411.
The domestic and foreign policy pursued by John I until his death in 1433 may be briefly described. At home he endeavoured to reform administration, to encourage agriculture and commerce, and to secure the loyalty of the nobles by grants of land and privileges so extensive that, towards the end of his reign, many nobles who exercised their full feudal rights had become almost independent princes. Abroad, he aimed at peace with Castile and close friendship with England. In 1387 he had married Philipa of Lancaster, daughter of John of Gaunt; Richard II sent troops to aid in the expulsion of Denis; Henry IV, Henry V, and Henry VI of England successively ratified the treaty of Windsor; Henry IV made his ally a knight of the Garter in 1400.

### Beginning of the Portuguese Empire

The Cortes of Coimbra, the battle of Aljubarrota and the treaty of Windsor mark the three final stages in the consolidation of the monarchy. A period of expansion oversea began in the same reign, with the capture of Ceuta in Morocco. The three eldest sons of King John and Queen Philippa, Edward, Peter and Henry (afterwards celebrated as Henry the Navigator) desired to win knighthood by service against the Moors, the historic enemies of their country and creed. In 1415 a Portuguese fleet, commanded by the king and the three princes, set sail for Ceuta. The town was captured and garrisoned, and thus the first Portuguese outpost was established on the mainland of Africa.

## Flags of Portugal during the Middle Ages

Five different flags were used during the period from 1139 until 1415. As seen below, they evolved over time from a simple blue cross on a white field to a complex design involving a red border with many different shapes.
* Flag since 1095, used until 1143
* Flag from 1143 until 1185
* Flag from 1185 until 1248
* Flag from 1248 until 1385
* Flag after 1385, used until 1485