La Rioja (English /lə riːˈoʊhə/; Spanish: [la ˈrjoxa]) is an autonomous community and a province of northern Spain. Its capital is Logroño. Other cities and towns in the province include Calahorra, Arnedo, Alfaro, Haro, Santo Domingo de la Calzada, and Nájera.
In Roman times the territory of La Rioja was inhabited by the tribes of the Berones (central country), Autrigones (upper country, extending also north and west of it) and the Vascones (lower country, extending also north and east of it). It was part of the province of Hispania Tarraconensis. In Medieval times La Rioja was often a disputed territory. The Visigoths created the Duchy of Cantabria that probably included most of La Rioja, as a border march against the Vascones. After the Muslim invasion of 711, La Rioja fell into the Muslim domains of Al Andalus.
In the early 10th century, Sancho I of Pamplona conquered most of the territory, except for the lower region around Arnedo, which came under control of his allies the Banu Qasi of Tudela. La Rioja briefly formed the independent Kingdom of Viguera from 970 to about 1005, at which point it became a part of the Kingdom of Pamplona. Nájera, in La Rioja, often served as capital of the kingdom.
Spain (i/ˈspeɪn/ SPAYN; Spanish: España, pronounced: [esˈpaɲa] ( listen)), officially the Kingdom of Spain (Spanish: Reino de España), is a sovereign state and a member of the European Union located in southwestern Europe on the Iberian Peninsula. Its mainland is bordered to the south and east by the Mediterranean Sea except for a small land boundary with the British Overseas Territory of Gibraltar; to the north and north east by France, Andorra, and the Bay of Biscay; and to the northwest and west by the Atlantic Ocean and Portugal.
Spanish territory also includes the Balearic Islands in the Mediterranean, the Canary Islands in the Atlantic Ocean off the African coast, and two autonomous cities in North Africa, Ceuta and Melilla, that border Morocco. Furthermore, the town of Llívia is a Spanish exclave situated inside French territory. With an area of 504,030 square kilometres (194,610 sq mi), it is the second largest country in Western Europe and the European Union after France, and the fourth largest country in Europe after Russia, Ukraine and France.