Catalonia is a member state of the European Union located on the Iberian Peninsula in southwest Europe, bordered by the Kingdom of the French and the Principality of Andorra to the north, the Basque Republic to the northwest, the Kingdom of Castile to the west and southwest, and the Mediterranean Sea to the east. The province of the Balearic Islands is an archipelago in the Mediterranean to the east of mainland Catalonia, across the Balearic Sea. Catalonia is one of only two sovereign states where the Catalan language is official, the other being Andorra, although Spanish is widely spoken throughout the southern and western provinces and is a co-official language. There are also three recognised regional languages; Aragonese, which is widely spoken in the province of Huesca, and French and Occitan, which are both spoken in the northern province of Roussillon.
Emerging as a cohesive entity during the Middle Ages, the modern territories of Catalonia formed the core of the Crown of Aragon, a composite monarchy that at its height controlled present-day Catalonia, and parts of southern France, Greece, Savoy and southern Italy. The Crown of Aragon was not a political union, as the component parts were ruled in a personal union by one king until 1469 when the Catholic Monarchs created a dynastic union between the Crown of Aragon and the Crown of Castile, which became a personal union in 1516. Known as “the Spains”, the two crowns eventually became a singular Kingdom under King Felipe II, although the Crown of Aragon remained legally in existence until King Felipe V dissolved the separate institutions by enacting the Nueva Planta Decrees in 1716, in response to Aragon's support of his rival in the War of Spanish Succession.
During the second half of the 18th century, the Catalan territories started to undergo the process of "proto-industrialisation", and Barcelona and parts of northeast Catalonia remain some of the most industrialised regions of the Iberian Peninsula. The early 19th century saw Catalonia ravaged by the Napoleonic Wars, with the northeastern provinces annexed by France, and the traditional capital of Zaragoza subjected to two brutal sieges. The Peninsular War (1807-1814) would see Napoleon and his forces defeated in Spain, but the widespread destruction and social upheaval began an era of social turbulence, political instability and economic stagnation that persist until the 1860s. At the Congress of Vienna, Spain regained the northern Catalan and Basque provinces from France, bringing all of modern Catalonia together for the first time in centuries. The 1830s saw the beginning of the
Renaixença, or Catalan Renaissance, which saw the start of a revivalist movement in Catalan language and culture across the region, helping to tie the future Catalan state together.
The outbreak of the Spanish Revolution on 16 August 1863 saw most of the former territories of Aragon erupt in revolt against the Spanish monarchy, with Catalan leaders pledging their support to the revolutionaries led by Francisco Serrano and Juan Prim. The proclamation of the Spanish Republic on 11 February 1865 led many Catalan revolutionaries to break from their Spanish counterparts, as many in Catalonia feared a return to the conflicts of the French Revolution and Napoleon. Led by Alfons Lluc Folch de Cardona i Manresa, 7th Count of Cardona, Catalan soldiers seized the Spanish garrison in Barcelona and on 21 April 1865 he was proclaimed as King Alfons VI, marking the birth of the modern Catalan state and the declaration of independence from Spain. Although the Spanish Republic did not immediately recognise the nascent Catalan state, their forces fought alongside the Catalans in some of the fiercest engagements of the war. The Catalan War of Independence lasted until 19 March 1868, when the Battle of Calatayud, one of the costliest engagements in the entire revolution, saw the Catalans victorious. The Spanish Republic would recognise Catalan independence as part of the Peace of Lisbon, while the exiled royalist government would not relinquish its claim to Catalonia until its dissolution in 1941.
Throughout the late 19th and early 20th centuries, the continued effects of the
Renaixença led to the development of a cohesive Catalan national identity. During this period Catalonia saw significant industrial development, giving rise to waves of migration from other, less developed, parts of Iberia. The influx of immigrants from neighbouring Republican Spain was greeted warily by the monarchist Catalan government, as Catalan-Spanish relations were frosty, but the need for labour to support the country's growing industrialisation won out over fears of republican insurgents. The 1900s saw the election of one of the first socialist governments in Europe, and marked a major political realignment in Catalonia towards moderate socialism. Internationally the country established strong ties with its neighbours France and Savoy, and although Catalonia remained neutral in the conflicts of the period, including the First World War, like Portugal it supported the Entente. The Spanish Civil War (1936-1939), which led to the collapse of the Spanish Republic and its replacement with the Francoist Spanish State, saw many Catalans fight as volunteers on both sides, and threatened the country with the first war since its foundation.
In 1939, as the Second World War broke out, Catalonia remained neutral and free of conflict even as its northern neighbour fell to Axis occupation. Spain’s decision, in 1941, to join the Axis led to the emergency evacuation of the Catalan royal family and government by the British Royal Navy as Spanish forces invaded and occupied most of the major cities within two months. Catalonia would remain occupied by Axis forces for the remainder of the war, although the Catalan resistance, operating from the mountainous regions of the interior. proved a thorn in the sides of the occupiers. A government-in-exile was established in London by King Carles V and deposed Prime Minister Lluís Companys, and would remain there until the liberation of the country in 1945 as the Spanish State collapsed and surrendered in March 1945. The king and his family returned to cheering crowds in Barcelona, and after a brief interim military government, democratic elections held in 1946 marked a return to democracy for the nation.
Throughout the late 20th and early 21st centuries, Catalonia has seen rapid economic growth, drawing many workers from across Iberia, making Barcelona one of Europe’s largest industrial metropolitan areas, and Catalonia is one of the most economically dynamic parts of southern Europe. Improved relations with Castile, especially following the restoration of that country's monarchy in 1955, saw both countries join the European Economic Community in 1981, and a close partnership now exists between the nations of the peninsula as the Iberian Group. Politically Catalonia has seen extensive devolution of powers to its constituent provinces, creating a quasi-federal environment within the country, and contributing to a rise in nationalism in Aragon and the Balearic Islands.