Portugal and Spain are two separate countries located on the Iberian Peninsula in southwestern Europe. While both countries have a shared history and culture, they have been politically independent of each other for centuries.
The origins of the modern states of Portugal and Spain can be traced back to the early Middle Ages, when the Iberian Peninsula was divided into a number of small kingdoms and territories. In the 11th century, the Kingdom of Portugal was founded by Afonso Henriques, who declared himself King of Portugal after successfully defeating the Moors at the Battle of Ourique. The Kingdom of Spain, on the other hand, was formed in 1469 through the marriage of Isabella I of Castile and Ferdinand II of Aragon.
Since then, Portugal and Spain have developed as distinct countries with their own distinct histories, cultures, and governments. While they have a close relationship and cooperate on many issues, they are politically and legally independent of each other and are not part of the same country.