Portugal , officially the Portuguese Republic (Portuguese: República Portuguesa) is a sovereign state located on the Iberian Peninsula in southwestern Europe. It is the westernmost country of mainland Europe. To the west and south it is bordered by the Atlantic Ocean and to the east and north by Spain. The Portugal–Spain border is 1,214 kilometres (754 miles) long and considered the longest uninterrupted border within the European Union. The republic also includes the Atlantic archipelagos of the Azores and Madeira, both autonomous regions with their own regional governments.