Question: Spain, officially the Kingdom of Spain, is a sovereign state located on the Iberian Peninsula in southwestern Europe,the country's mainland is bordered to the north and northeast by which location,a sovereign landlocked microstate in Southwestern Europe, located in the eastern Pyrenees mountains and bordered by Spain and France? 

Context paragraphs:
Geography of Andorra: Andorra is a small, landlocked country in southwestern Europe, located in the eastern Pyrenees mountain range and bordered by Spain and France.  With an area of 468 km², it is the sixth smallest country in Europe and also the largest of the European microstates.

History of Andorra: Andorra, officially the Principality of Andorra (Catalan: "Principat d'Andorra" ), also called the Principality of the Valleys of Andorra (Catalan: "Principat de les Valls d'Andorra" ), is a sovereign landlocked microstate in Southwestern Europe, located in the eastern Pyrenees mountains and bordered by Spain and France.

Co-Princes of Andorra: The Co-Princes of Andorra are jointly the head of state ("Cap de l'Estat") of the Principality of Andorra, a landlocked microstate lying in the Pyrenees mountains between France and Spain.  Founded in 1278 through a treaty between the Bishop of Urgell and the French Count of Foix, this unique diarchical arrangement has persisted through medieval times to the present day.  Currently, the Bishop of Urgell (Joan Enric Vives Sicília) and the President of France (Emmanuel Macron) serve as Andorra's Co-Princes, following the transfer of the Count of Foix's claims to the Crown of France and, thence, to the President of the French Republic.  Each Co-Prince appoints a personal representative, the French Co-Prince currently being represented by Patrick Strzoda and the Episcopal Co-Prince by Josep Maria Mauri.

List of companies of Andorra: Andorra is a sovereign landlocked microstate in Southwestern Europe, located in the eastern Pyrenees mountains and bordered by Spain and France.

List of companies of Portugal: Portugal is a country 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 1214 km long and considered the longest uninterrupted border within the European Union.

List of companies of Spain: Spain is a sovereign state located on the Iberian Peninsula in southwestern Europe.  It is a middle power and a major developed country with the world's fourteenth largest economy by nominal GDP and sixteenth largest by purchasing power parity.  It is a member of the United Nations (UN), the European Union (EU), the Eurozone, the Council of Europe (CoE), the Organization of Ibero-American States (OEI), the North Atlantic Treaty Organization (NATO), the Organisation for Economic Co-operation and Development (OECD), the Schengen Area, the World Trade Organization (WTO) and many other international organisations.  Spain has a "permanent invitation" to the G20 summits that occur generally once a year.

Portugal: Portugal (Portuguese: ] ), 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, being bordered to the west and south by the Atlantic Ocean and to the north and east by Spain.  The Portugal–Spain border is 1214 km long, making it 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.

Andorra: Andorra ( ; ] , ] ), officially the Principality of Andorra (Catalan: "Principat d'Andorra" ), also called the Principality of the Valleys of Andorra (Catalan: "Principat de les Valls d'Andorra" ), is a sovereign landlocked microstate in Southwestern Europe, located in the eastern Pyrenees mountains and bordered by Spain and France.  Created under a charter in 988, the present principality was formed in 1278.  It is known as a principality as it is a diarchy headed by two Co-Princesthe Catholic Bishop of Urgell in Spain, and the President of France.

Pyrenean ibex: The Pyrenean ibex ("Capra pyrenaica pyrenaica"), Spanish common name bucardo, was one of the four subspecies of the Spanish ibex or Iberian wild goat, a species endemic to the Iberian Peninsula.  Pyrenean ibex were most common in the Cantabrian Mountains, Southern France, and the northern Pyrenees.  This species was common during the Holocene and Upper Pleistocene, during which their morphology, primarily some skulls, of the Pyrenean ibex was found to be larger than other "Capra" subspecies in southwestern Europe from the same time.

Spain: Spain (Spanish: "España" ] ), officially the Kingdom of Spain (Spanish: "Reino de España" ), is a sovereign state located on the Iberian Peninsula in southwestern Europe, with two large archipelagoes, the Balearic Islands in the Mediterranean Sea and the Canary Islands off the North African Atlantic coast, two cities, Ceuta and Melilla, in the North African mainland and several small islands in the Alboran Sea near the Moroccan coast.  The country's mainland is bordered to the south and east by the Mediterranean Sea except for a small land boundary with Gibraltar; to the north and northeast by France, Andorra, and the Bay of Biscay; and to the west and northwest by Portugal and the Atlantic Ocean.  It is the only European country to have a border with an African country (Morocco) and its African territory accounts for nearly 5% of its population, mostly in the Canary Islands but also in Ceuta and Melilla.

Supporting paragraphs: Spain Andorra
Answer: Principality of Andorra