Proud of its own identity and language, Catalonia is one of Spain's richest and most highly industrialised regions, and also one of the most independent-minded.
With a distinct history stretching back to the early middle ages, many Catalans think of themselves as a separate nation from the rest of Spain.
A roughly triangular region in Spain's far north-east corner, Catalonia is separated by the Pyrenean mountains from southern France, with which it has close historical and cultural ties.
Most people in Catalonia live in Barcelona, its political and economic hub and popular European travel destination.
Holiday-makers also flock to the Mediterranean beaches of the Costa Brava and Costa Daurada/Dorada, and the Pyrenees are popular with hikers, making tourism an important part of Catalonia's economy.
But it is manufacturing - traditionally textiles though more recently overtaken in importance by the chemical industry, food-processing, metalworking - that make the region Spain's economic powerhouse, along with a growing service sector.
The use of Catalan - a language as close to regional languages of southern France like Occitan as it is to Castilian Spanish - has equal status with Castilian and is now actively encouraged in education, official use and the media. However, Castilian predominates in Barcelona, and is still the first language of a narrow majority of Catalans, who are nearly all bilingual.
Variants are also spoken in the region of Valencia to the south, and on the Balearic islands, leading many Catalan nationalists to regard all three regions- as well as the traditionally Catalan-speaking Roussillon region of France - as forming the "Catalan Countries".
History of Catalonia
The area first emerged as a distinct entity with the rise of the County of Barcelona to pre-eminence in the 11th Century. In the 12th Century, the county was brought under the same royal rule as the neighbouring kingdom of Aragon, going on to become a major medieval sea power.
Catalonia has been part of Spain since its genesis as a united state in the 15th Century, when King Ferdinand of Aragon and Queen Isabella of Castile married and united their realms.
Initially retaining its own institutions, the region was ever more tightly integrated into the Spanish state, until the 19th Century ushered in a renewed sense of Catalan identity, which flowed into a campaign for political autonomy and even separatism. The period also saw an effort to revive Catalan as a language of literature.
When Spain became a republic in 1931, Catalonia was soon given broad autonomy.
During the Spanish Civil War, Catalonia was a key Republican stronghold, and the fall of Barcelona to Gen Francisco Franco's right-wing forces in 1939 marked the beginning of the end of republican resistance.
Under Franco's ultra-conservative rule, autonomy was revoked, Catalan nationalism repressed, and use of the Catalan language restricted.
The pendulum swung back with the emergence of a democratic Spain after Franco's death. Catalonia now has its own parliament and executive - together known as the "Generalitat" in Catalan - with extensive autonomy.
Separatist fervour soared in 2010 after a ruling by Spain's constitutional court set limits on Catalan claims to nationhood. The region's president at the time, Jose Montilla, said the ruling had "attacked the dignity of Catalans".
Spain's painful economic crunch also fuelled enthusiasm for sovereignty. Many Catalans believe their affluent region pays more to Madrid than it gets back, and blamed much of Spain's 2008 debt crisis on the central government.
A regional government backed by the two main separatist parties held a non-binding independence referendum in 2014, with 80% of those taking part voting "yes".
It called another set of elections in 2015 to reinforce its mandate, and a further referendum followed in October 2017 that again backed independence by a large margin.
The 2017 breakaway referendum prompted Spain's deepest political crisis for decades, with the Catalan regional parliament declaring independence, and Madrid then imposing direct rule over the region.
After Catalan leader Carles Puigdemont and two ministerial colleagues fled, Spain jailed nine other Catalan leaders for sedition for their role in the breakaway vote. They were pardoned by Spanish Prime Minister Pedro Sánchez in 2021.