Lamego (lɐˈmeɣu; Lamecum) is a city and municipality in the Viseu District, in the Norte Region of the Douro in northern Portugal. Located on the shores of the Balsemão River, the municipality has a population of 26,691, in an area of 165.42 km2.
With origins before the Roman occupation of the Iberian Peninsula, Lamego is known for its historic city center, having a long history as a principal city of the former Trás-os-Montes e Alto Douro Province. Legend holds that the first Portuguese Cortes were held in Lamego, in 1143. The Roman Catholic Diocese of Lamego is based in the city center.
The toponymic name Lamego was derived from Lamaecus, a Hispano-Celtic and Roman derivative referring to owners of agrarian titles in the 3rd century around the local castle.
The area around Lamego was inhabited by Ligures and Turduli, and during the Roman presence it was occupied by Coelerni, which left behind several monuments. Due to the placement of the castle, it is likely that a castro originally existed on the site. During the Inquirições (Inventory/Enquiries) of King Afonso (during the 13th century) there was reference to the Castro de Lameco, referred to as a medieval fortification. Destroyed by the Romans, the inhabitants were forced to descend into the valley and cultivate the land, as part of the Roman reorganization of the land.
Lamego became Catholic when the Visigothic king Rekared I converted to Catholicism. In 569, during the Council of Lugo, there appeared references to Sardinário the Bishop of Lamego. During the reign of Sisebuto (612-621), the Visigothic monarch coined currency from Lamego, indicating the importance of the region to commerce and culture.
Just outside the city center is the tiny 7th century São Pedro de Balsemão Chapel, a Visigothic chapel believed to be the oldest in Portugal (and second oldest in Europe).
The region alternated between Christian and Muslim hands during the early Reconquista Period. The city was first conquered by Alfonso I of Asturias in 773, and repopulated in 868 by Alfonso III.