The Ambassador of Portugal to Spain is the highest legal representative of Portugal to the Kingdom of Spain through the Embassy of Portugal in Madrid.
Relations between Portugal and the Kingdoms of the Iberian Peninsula that would later constitute modern Spain, especially the Kingdom of León and the Kingdom of Castile, date back to the 12th century, when Portugal was established as an independent political unit.<br> On 5 October 1143, King Alfonso VII of León and Castile signed the Treaty of Zamora in which he recognized Afonso Henriques as King of Portugal.
A formal Portuguese diplomatic mission to Spain has existed since 1669. The first Portuguese ambassador, Count Miranda, was accredited to the Spanish court from 1668 to 1670.
The permanent Portuguese embassy in the capital, Madrid, is located in a villa built in 1908 at number 88 Calle Lagasca.
A Portuguese consulate general is also located there, with two others in Barcelona and Seville, and a vice-consulate in Vigo. Portuguese honorary consulates in Spain also exist in A Coruña, Badajoz, Bilbao, Cáceres, Las Palmas de Gran Canária, Málaga, Santa Cruz de Tenerife and in Ceuta.