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 of the region's population lives in Barcelona, its vibrant 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, but 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 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 is 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 blame 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 Spanish government maintains that Catalonia had no constitutional right to break away, and temporarily imposed direct rule on the region after the government in Barcelona declared independence.
But fresh Catalan elections in December 2017 returned a majority for pro-independence parties, although a pro-Madrid party emerged as the single largest group in parliament.
Catalan language on the rise
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".