Portuguese () is a Western Romance language of the Indo-European language family, written in the Latin script. With approximately 267 million native speakers, it is the fifth-most spoken native language in the world, and the most widely spoken language in the Southern Hemisphere. It is the official language of eight countries — Portugal, Brazil, Angola, Mozambique, Cape Verde, Guinea-Bissau, São Tomé and Príncipe, and Timor-Leste — and is co-official with other languages in Macau and Equatorial Guinea.

Portuguese-speaking people or nations are known as Lusophone (). As a result of expansion during colonial times, a cultural presence of Portuguese speakers is also found around the world. Portuguese is part of the Ibero-Romance group, which evolved from several dialects of Vulgar Latin in the medieval Kingdom of Galicia and the County of Portugal, and has retained some Celtic phonology.

Portuguese language structure reflects both its Latin roots and centuries of outside influences. These are seen in phonology, orthography, grammar, and vocabulary. Phonologically, Portuguese has a rich system of nasal vowels, complex consonant variations, and different types of guttural R – as well as other sounds in its European and Brazilian varieties. Its spelling, based similarly to English on the Latin alphabet, is largely phonemic but is influenced by etymology and tradition. Recent spelling reforms have attempted to create a unified spelling for the Portuguese language across all countries that use it. Portuguese grammar retains many Latin verb forms, and possesses several unique features (such as the future subjunctive and the personal infinitive). Its vocabulary is derived largely from Latin, but also includes from Celtic, Germanic, Arabic, African, Amerindian, and Asian languages, resulting from historical contact based on wars, trade, and colonization.

There is significant variation in the dialects of Portuguese worldwide, with two primary standardized varieties: European Portuguese and Brazilian Portuguese, each one having numerous regional accents and subdialects. African and Asian varieties generally follow the European written standard, though these will often display different phonological, lexical, and sometimes even syntactic features. While there is broad mutual intelligibility among the assorted lusophone population, variation may be observed in speech patterns, vocabulary, or grammar.

History

Origins and Roman period Prior to Roman expansion, the territory corresponding to modern Portugal was inhabited by a heterogeneous set of peoples, including the Gallaeci, Lusitanians, Celts, Iberians, Phoenicians, Greeks, and Ligurians. These groups spoke a variety of languages that were gradually supplanted following Roman conquest, but not without leaving a substratum of lexical and morphological influence. A significant number of Portuguese words — often associated with the natural environment, agriculture, and material culture — are attributed to these pre-Roman sources.

The Roman presence in the Iberian Peninsula began in 218 BC during the Second Punic War, initially as part of military operations against Carthage. Roman control expanded progressively, with the defeat of Carthaginian forces completed by 209 BC, although full territorial consolidation was not achieved until 19 BC under the rule of Augustus, following campaigns in the northern regions of Asturias and Cantabria. During this period, the territory was administratively organized into provinces such as Hispania Citerior and Hispania Ulterior, later restructured into Tarraconensis, Baetica, and Lusitania. By the late Roman Empire, the northwestern region was designated as the province of Gallaecia (approximately modern-day Galicia).

Latin served as the administrative and ecclesiastical language of the Roman Empire, and proficiency in it was associated with access to public office and social advancement. The degree of Romanization varied regionally: southern areas, particularly Baetica, underwent rapid cultural assimilation and early adoption of Latin, whereas the northern regions, including Gallaecia, remained comparatively isolated and retained indigenous practices for a longer period. Latin spread from urban centers outward through cities, educational institutions and administrative networks, where proficiency in Latin was closely tied to the acquisition of Roman citizenship; the variety spoken by soldiers, settlers and officials was known as Vulgar Latin (), as distinct from Classical Latin, which was used in literary texts.

In the northwestern periphery of the empire, the Vulgar Latin spoken in Gallaecia developed distinctive features, attributed in part to reduced contact with the imperial center. The most diagnostic phonetic change was the loss of intervocalic l and n, as in to (), to (), and to () — a development not attested in neighbouring varieties such as Spanish. Geminate consonants were also simplified, as in to () and to (), and initial consonant clusters cl-, fl-, and pl- evolved into palatal sounds, as in to (), to (), and to ().

In 409, the Iberian Peninsula was invaded by several Germanic and Iranian peoples, including the Vandals, Suebi, and Alans. The Visigoths of the Visigothic Kingdom, already established in Aquitaine and closely connected to Roman institutions, extended their rule over most of the peninsula during the 5th and 6th centuries. Their integration with the Hispano-Roman population was facilitated by measures such as the legalization of intermarriage under Leovigild, the conversion of Reccared I to Catholic Christianity in 586, and the promulgation of a unified legal code in 654 under Recceswinth. These developments contributed to the consolidation of a Romano-Visigothic society in which the vernacular remained a form of Hispano-Romance derived from Vulgar Latin. The Visigothic linguistic contribution to Portuguese was limited, consisting of fewer than forty commonly cited lexical items of Gothic origin, many shared with other Romance languages. Examples include (), (), (), and ().

Arab conquest and old Galician–Portuguese

In 711, Muslim forces crossed the Strait of Gibraltar and defeated the Visigothic king Roderic, leading to the Islamic rule of the Iberian Peninsula. The Muslim authorities generally allowed the continued use of local Romance varieties, the preservation of Hispano-Roman customs. In the Muslim-controlled south, Christians living under Moorish rule, known as Mozarabs, maintained their Latin-derived speech, referred to as Andalusi Romance. In the northern Christian kingdoms, different Romance varieties gradually emerged, including Galician–Portuguese in the region of Gallaecia, Asturleonese in the Kingdom of León, Spanish in Castile, Navarro-Aragonese in Navarre and Aragon and Catalan in Catalonia.

The northwestern region, corresponding to Gallaecia, also remained outside sustained Islamic rule. As a result, its local Romance variety Galician–Portuguese developed with greater continuity from Latin. The variety, which was spoken north and south of the Minho River, constituted a unified linguistic system from the 9th to the 14th century. Although Latin remained the language of administration and written literature for centuries, the emerging Romance varieties continued to develop in speech, and extensive texts in the vernacular only began to appear later. When the Kingdom of Portugal became independent in 1143, its inhabitants continued to use this shared variety, which remained the common vernacular of the region.

Between the 12th and 14th centuries, Galician–Portuguese served as the literary language of lyric poetry across the Iberian Peninsula, drawing on the troubadour tradition of southern France. The poetry of the period is preserved primarily in three major songbooks. The Cancioneiro da Ajuda, dated to the late 13th century, is the oldest and contains predominantly . The Cancioneiro da Vaticana and the Cancioneiro da Biblioteca Nacional are 15th-century copies of earlier manuscripts containing secular and satirical compositions. The Cantiga da Ribeirinha ( 1189 or 1198), composed by Paio Soares de Taveirós and preserved in the Cancioneiro da Ajuda, is regarded as one of the earliest known pieces of medieval Galician–Portuguese lyric poetry.

The identification of the oldest document written in Old Portuguese is a matter of scholarly debate. (1175) has been identified by philologist as the earliest surviving document written in Portuguese. However, she explicitly states that this chronology is not consensual and is the one she personally finds most accurate; other scholars argue that the presence of Romance elements in the text is limited and insufficient to classify it as a fully Galician-Portuguese document. The possibly earlier has also been cited in this context. By contrast, the Will of Afonso II of Portugal (1214) is widely regarded as one of the earliest dated documents written entirely in Portuguese. It consists of three copies of the will of Afonso II (1211–1223), the third king of Portugal, drawn up during a period of ill health.

Divergence of Galician and Portuguese

The Galician and Portuguese language began to diverge from their common Galician–Portuguese base from around the 11th century. Early signs of separation are attested in Galician prose works, of which the is among the most frequently cited examples. By around 1250, Portuguese texts began to adopt digraphs such as lh and nh, replacing the Latin forms ll and nn. Between 1350 and 1450, Galicia experienced a second period of lyric production in which Portuguese poets did not participate.

In the late 13th century, King Denis of Portugal issued a decree establishing Portuguese as the mandatory language of royal administration, replacing Latin in the chancery. Documents including laws, forals, royal letters and court records were required to be written in Portuguese. Historian Cleusa Teixeira de Sousa has interpreted this measure as a strategy to strengthen the authority of the Portuguese crown. Following the rise of the House of Aviz after the Battle of Aljubarrota in 1385, the political center of Portugal shifted southward, to Lisbon and Coimbra. Northern Portugal subsequently came to be regarded as a peripheral region, while Galicia was increasingly treated as a foreign territory.

According to Rodolfo Ilari and Renato Basso, around 1420 marks the transition from Old Portuguese to Middle Portuguese, a periodization they attribute to scholars including Luís Lindley Cintra and . Throughout much of the Middle Ages, the Portuguese language was commonly referred to as or ; by the 15th century, the designation "Portuguese language" became more widespread. The earliest known use of the term "Portuguese" () to designate the language dates to around 1430, appearing in a dedicatory letter written by Peter, Duke of Coimbra to his brother, King Duarte, accompanying his translation of Cicero's De Officiis, in which he writes explicitly: "" (). The printing press was introduced to Portugal in the late 15th century; , a translation from Spanish into Portuguese, is among the earliest known printed works in the language, and contributed to the standardization of Portuguese orthography.

During the 16th and 17th centuries, Portuguese underwent a process of Latinate renewal, reincorporating Latin and Greek vocabulary. Much of this influence entered the language through Spanish. Some words that had lost intervocalic l and n through regular sound change were reintroduced in Latinate or Castilian forms, such as > (), > () and > (). In orthography, this period saw the adoption of pseudo-etymological spellings imitating Latin and Greek forms, such as , , and .