Spain is a country in southwestern Europe located in the Iberian Peninsula with several exclaves located in northern Africa. It borders France and Andorra to its north, Portugal to its west, and Morocco and the UK's Gibraltar territory to its south. The country is a constitutional monarchy with a king serving as head of state and a prime minister. Its capital and largest city is Madrid.