Culture of Spain medieval times, a single language which linguists call Galician-Portuguese, Medieval Galician, or Old Portuguese, spoken in the territories initially ruled by the medieval Kingdom of Galicia. Both languages are even today united by a dialect continuum located mainly in the northern regions of Portugal. Aranese () is a standardized form of the Pyrenean Gascon variety of the Occitan language spoken in the Val d'Aran, in north western Catalonia on the border between Spain and France, where it is one of the three official languages besides Catalan and Spanish. Other languages of Spain: About 68% of Spaniards identify as belonging to
John IV of Portugal Braganza. The ensuing conflict with Spain brought Portugal into the Thirty Years' War as, at least, a peripheral player. From 1641 to 1668, the period during which the two nations were at war, Spain sought to isolate Portugal militarily and diplomatically, and Portugal tried to find the resources to maintain its independence through political alliances and maintenance of its colonial income. His accession led to a protracted war with neighbouring Spain, a conflict known as the Portuguese Restoration War, which ended with the recognition of Portuguese independence in a subsequent reign (1668). Portugal signed lengthy alliances with France (1 June