Barcelona is a city on the northeastern coast of Spain. It is the capital and largest city of the autonomous community of Catalonia, as well as the second-most populous municipality of Spain after Madrid. With a population of 1.7 million within city limits, its urban area extends to numerous neighbouring municipalities within the province of Barcelona and is home to around 5.7 million people, making it the fifth most populous urban area of the European Union after Paris, the Ruhr area, Madrid, and Milan. It is one of the largest metropolises on the Mediterranean Sea, located on the coast between the mouths of the rivers Llobregat and Besòs, and bounded to the west by the Serra de Collserola mountain range.
According to tradition, Barcelona was founded by either the Phoenicians or the Carthaginians, who had trading posts along the Catalonian coast. In the Middle Ages, Barcelona became the capital of the County of Barcelona. After joining with the Kingdom of Aragon to form the composite monarchy of the Crown of Aragon, Barcelona, which continued to be the capital of the Principality of Catalonia, became the most important city in the Crown of Aragon and its main economic and administrative centre, only to be overtaken by Valencia, wrested from Moorish control by the Catalans, shortly before the dynastic union between the Crown of Castile and the Crown of Aragon in 1516. Barcelona became the centre of Catalan separatism, briefly becoming part of France during the 17th century Reapers' War and again from 1812 to 1814 under Napoleon.
Experiencing industrialization and several workers movements during the 19th and early 20th century, it became the capital of autonomous Catalonia in 1931 and was the epicenter of the revolution experienced by Catalonia during the Spanish Revolution of 1936, until its capture by the fascists in 1939. After the Spanish transition to democracy in the 1970s, Barcelona once again became the capital of an autonomous Catalonia. Barcelona has a rich cultural heritage and is today an important cultural centre and a major tourist destination. Particularly renowned are the architectural works of Antoni Gaudí and Lluís Domènech i Montaner, which have been designated UNESCO World Heritage Sites. The city is home to two of the most prestigious universities in Spain: the University of Barcelona and Pompeu Fabra University. The headquarters of the Union for the Mediterranean are located in Barcelona. The city is known for hosting the 1992 Summer Olympics as well as world-class conferences and expositions. In addition, many international sport tournaments have been played here.

Barcelona is a major cultural, economic, and financial centre in southwestern Europe, as well as the main biotech hub in Spain. As a leading world city, Barcelona's influence in global socio-economic affairs qualifies it for global city status (Beta +). Barcelona is a transport hub, with the Port of Barcelona, one of Europe's principal seaports and the busiest European passenger port, an international airport, Barcelona–El Prat Airport, which handles over 50 million passengers per year, an extensive motorway network, and a high-speed rail line with links to France and the rest of Europe.
Names
The name Barcelona comes from the ancient Iberian Baŕkeno, attested in an ancient coin inscription found on the right side of the coin in Iberian script as , in Ancient Greek sources as Βαρκινών, Barkinṓn; and in Latin as Barcino, Barcilonum and Barcenona.
Other sources suggest that the city may have been named after the Carthaginian general Hamilcar Barca, who was supposed to have founded the city in the 3rd century BC, but there is no evidence that its name in antiquity, Barcino, was connected with the Barcid family of Hamilcar. During the Middle Ages, the city was variously known as Barchinona, Barçalona, Barchelonaa, and Barchenona.

An abbreviated form sometimes used by locals for the city is Barna. Barça is only applied to the local football club FC Barcelona, not to the city. Another common abbreviation is 'BCN', which is also the IATA airport code of the Barcelona-El Prat Airport.
The city is referred to as the Ciutat Comtal in Catalan and Ciudad Condal in Spanish (i.e., "Comital City" or "City of Counts"), owing to its past as the seat of the Count of Barcelona.
History
Legendary founding
The origin of the earliest settlement at the site of present-day Barcelona is unclear. The ruins of an early settlement have been found, including different tombs and dwellings dating to earlier than 5000 BC. In Greek mythology, the founding of Barcelona had been attributed to the mythological Hercules.

Punic Barcelona
According to tradition, Barcelona was founded by Punic (Phoenician) settlers, who had trading posts along the Catalonian coast. In particular, some historians attribute the foundation of the city directly to the historical Carthaginian general, Hamilcar Barca, father of Hannibal, who supposedly named the city Barcino after his family in the 3rd century BC, but this theory has been questioned. Iberia and Barcelona was controlled by the Carthaginian Empire and was an important location for trade due to its proximity to Punic Ibiza. Archeological evidence in the form of coins from the 3rd century BC have been found on the hills at the foot of Montjuïc with the name Bárkeno written in the Iberian script in the Iberian language. Thus, some have argued that the Laietani, an ancient Iberian (pre-Roman) people of the Iberian peninsula, who inhabited the area occupied by the city of Barcelona around 3–2 BC after the Punic withdrawal from Iberia, called the area Bàrkeno, which means "The Place of the Plains" (Barrke = plains/terrace).
Roman Barcelona
In about 15 BC, the Romans redrew the town as a castrum (Roman military camp) centred on the "Mons Taber", a little hill near the Generalitat (Catalan Government) and city hall buildings. The Roman Forum, at the crossing of the Cardo Maximus and Decumanus Maximus, was approximately placed where current Plaça de Sant Jaume is. Thus, the political centre of the city, Catalonia, and its domains has remained in the same place for over 2,000 years.
Under the Romans, it was a colony with the surname of Faventia, or, in full, Colonia Faventia Julia Augusta Pia Barcino or Colonia Julia Augusta Faventia Paterna Barcino. Pomponius Mela mentions it among the small towns of the district, probably as it was eclipsed by its neighbour Tarraco (modern Tarragona), but it may be gathered from later writers that it gradually grew in wealth and consequence, favoured as it was with a beautiful situation and an excellent harbour. It enjoyed immunity from imperial burdens. The city minted its own coins; some from the era of Galba survive.

Important Roman vestiges are displayed in Plaça del Rei underground, as a part of the Barcelona City History Museum (MUHBA); the typically Roman grid plan is still visible today in the layout of the historical centre, the Barri Gòtic (Gothic Quarter). Some remaining fragments of the Roman walls have been incorporated into the cathedral. The cathedral, Catedral Basílica Metropolitana de Barcelona, is also sometimes called La Seu, which simply means cathedral (and see, among other things) in Catalan. It is said to have been founded in 343.
Medieval Barcelona
The city was conquered by the Visigoths in the early 5th century, becoming for a few years the capital of all Hispania. After being conquered by the Umayyads in the early 8th century, it was conquered after a siege in 801 by Charlemagne's son Louis, who made Barcelona the seat of the Carolingian "Hispanic March" (Marca Hispanica), a buffer zone ruled by the Count of Barcelona.
The Counts of Barcelona became increasingly independent and expanded their territory to include much of modern Catalonia, although in 985, Barcelona was sacked by the army of Almanzor. The sack was so traumatic that most of Barcelona's population was either killed or enslaved. In 1137, Aragon and the County of Barcelona merged in dynastic union by the marriage of Ramon Berenguer IV and Petronilla of Aragon, their titles finally borne by only one person when their son Alfonso II of Aragon ascended to the throne in 1162. His territories were later to be known as the Crown of Aragon, which conquered many overseas possessions and ruled the western Mediterranean Sea with outlying territories in Naples and Sicily and as far as Athens in the 13th century.

Barcelona also had a substantial Jewish community at the time, then the largest Jewish community in the Crown of Aragon. Called "the Call," for the many small streets that defined the area, it later became enclosed. Montjuïc or Montjuich, in medieval Latin and Catalan, meaning "Jewish Mountain" and the birthplace of the city, is the site of a medieval Jewish cemetery, Jews continued to live in Barcelona until the Massacre of 1391 diminished their numbers. The Spanish Inquisition forced the remaining Jews who refused to convert to Christianity to be burned at the stake, or sell their property and leave.
Barcelona was the leading slave trade centre of the Crown of Aragon up until the 15th century, when it was eclipsed by Valencia. It initially fed from eastern and Balkan slave stock later drawing from a Maghribian and, ultimately, Subsaharan pool of slaves.
The Bank or Taula de canvi de Barcelona, often viewed as the oldest public bank in Europe, was established by the city magistrates in 1401. It originated from necessities of the state, as did the Bank of Venice (1402) and the Bank of Genoa (1407).

Barcelona under the Spanish monarchy
In the beginning of the early modern period, Barcelona lost political primacy, but the economy managed to achieve a balance between production capacity and imports. In the context of the wider early recovery of Catalonia from the 17th-century crisis in the second half of the century, increasing maritime activity since 1675 doubled traffic in the port of Barcelona compared to figures from the beginning of the 17th century. In the late 17th and early 18th century, Barcelona repeatedly endured the effects of war, including the 1691 bombing, the sieges of 1697, 1704, 1705, 1706, and the 1713 blockade and ensuing 1714 siege and assault. In the 18th century, the population grew from 30,000 to about 100,000 inhabitants, as the city became one of the key mercantile centres in the Western Mediterranean, with inland influence up to Zaragoza, and to the south up to Alicante. A fortress was built at Montjuïc that overlooked the harbour. Much of Barcelona was negatively affected by the Napoleonic wars, but the start of industrialization saw the fortunes of the province improve.
During the 19th century, Catalan business interests, many of them based in Barcelona, became increasingly involved in the Atlantic slave trade, taking advantage of the void left by the British abolition of the trade in 1807. Catalan immigrants in Spanish America also became heavily involved in owning and running slave plantations in Cuba and Puerto Rico. Between 1817 and 1867, Catalans were involved in the transportation of 700,000 slaves from West Africa to the Caribbean, which "financed much of the industrialisation of Catalonia and the 19th-century building boom in Barcelona." Although the Spanish government had abolished slave trading in 1817, it turned a blind eye to illicit slave trading. When slavery was abolished in the Spanish Empire in 1886, many Catalans returned to Barcelona and invested their newfound fortunes in constructing opulent mansions in areas such as La Rambla.
Transforming the city
In the mid-1850s, Barcelona was struggling with population density as it became an industrial, port city and European capital. The city's density was at 856 people per hectare, more than double that of Paris. Mortality rates were on the rise and any outbreaks of disease would devastate the population. To solve the issue, a civil engineer named Ildefons Cerdà proposed a plan for a new district known as the Eixample. The citizens of Barcelona had begun to demolish the medieval wall surrounding and constricting the city. Cerdà thought it best to transform the land outside the walls into an area characterized by a scientific approach to urbanization. His proposal consisted of a grid of streets to unite the old city and surrounding villages. There would also be wide streets to allow people to breathe clean air, gardens in the centre of each street block, integration of rich and poor giving both groups access to the same services, and smooth-flowing traffic.
Urban quality, egalitarianism, hygiene, sunlight, and efficiency were all major keys for Cerdà's vision. Not everything he imagined would be realized within the Eixample district, but the iconic octagonal superblocks with chamfered corners for better visibility are his direct brainchild and remain immensely helpful even 170 years later. The district and its ideals were not appreciated at the time. The city council awarded the design of the extension plan to another architect. The Spanish government was the one to step in and impose Cerdà's plan, laying the groundwork for many more tensions between the Spanish and Catalan administrations. Regardless, some of the upper class citizens of Barcelona were excited by the new plan and began a race to build "the biggest, tallest, most attractive house" in the district. Their interest and money fueled the rich diversity that we now see in the district's architecture. In the end, Cerdà's ideas would have a lasting impact on Barcelona's development, earning it international recognition for its highly efficient approach to urban planning and design.
Spanish Civil War and Franco period
Shortly after the establishment of the Second Spanish Republic, in 1931, it became the capital of the autonomous region of Catalonia. During the Spanish Civil War, the city, and Catalonia in general, were resolutely Republican. Many enterprises and public services were collectivized by the CNT and UGT unions. As the power of the Republican government and the Generalitat diminished, much of the city was under the effective control of anarchist groups. The anarchists lost control of the city to their own allies, the Communists and official government troops, after the street fighting of the Barcelona May Days.
Barcelona was one of the last places in Spain to fall under Francoist control, and became the capital of the Second Spanish Republic in November 1937.
From 16 to 18 March 1938, Barcelona was bombed several times by Fascist Italy and Nazi Germany, in support of the Francoist-led army. It left at least 1,300 people killed and 2,000 wounded. The airstrikes intended to destroy industrial areas and demoralize the republicans, however civil buildings were also destroyed.
The fall of the city on 26 January 1939, caused a mass exodus of civilians who fled to the French border. The resistance of Barcelona to Franco's coup d'état was to have lasting effects after the defeat of the Republican government. The autonomous institutions of Catalonia were abolished, and the use of the Catalan language in public life was suppressed. Barcelona remained the second largest city in Spain, at the heart of a region which was relatively industrialized and prosperous, despite the devastation of the civil war. The result was a large-scale immigration from poorer regions of Spain (particularly Andalusia, Murcia and Galicia), which in turn led to rapid urbanization.
During the francoist period, municipal elections were suspended through all Spain and the mayor was appointed by the central government. Pressure for change was particularly strong in Barcelona, which considered that it had been punished during nearly forty years of Francoism for its support of the Republican government. After Franco's death in 1975, massive peaceful demonstrations on 11 September 1977 assembled over a million people in the streets of Barcelona to call for the restoration of Catalan autonomy. It was granted less than a month later. After the adoption of the Constitution, municipal elections were held again (1979).
Recent history
The development of Barcelona was promoted by two events in 1986: Spanish accession to the European Community, and particularly Barcelona's designation as host city of the 1992 Summer Olympics. The process of urban regeneration has been rapid, and accompanied by a greatly increased international reputation of the city as a tourist destination. The increased cost of housing has led to a slight decline (−16.6%) in the population over the last two decades of the 20th century as many families move out into the suburbs. This decline has been reversed since 2001, as a new wave of immigration (particularly from Latin America and from Morocco) has gathered pace.
In 1987, an ETA car bombing at Hipercor killed 21 people.
In 1992, Barcelona hosted the Summer Olympics. The after-effects of this are credited with driving major changes in what had, up until then, been a largely industrial city. As part of the preparation for the games, industrial buildings along the sea-front were demolished and 3 km (2 mi) of beach were created. New construction increased the road capacity of the city by 17%, the sewage handling capacity by 27% and the amount of new green areas and beaches by 78%. Between 1990 and 2004, the number of hotel rooms in the city doubled. Perhaps more importantly, the outside perception of the city was changed making, by 2012, Barcelona the 12th most popular city destination in the world and the 5th amongst European cities.
The year 2017 was an intense year in Barcelona. On August 17, Barcelona suffered a terrorist attack in the iconic Rambla, where a van drove into pedestrians, killing 13 people and injuring at least 130 others. The perpetrator fled on foot, killing another person to steal his car, and a large police operation was started. Massive demonstrations in the city center took place the days after the attack, with the motto "No tinc por" ("I am not afraid").
Other attacks took place elsewhere in Catalonia. The Prime Minister of Spain, Mariano Rajoy, called the attack in Barcelona a jihadist attack. Amaq News Agency attributed indirect responsibility for the attack to the Islamic State of Iraq and the Levant (ISIL).
On October 2017, after several years of growing of the Catalan independence movement, with massive demonstrations along the decade, an independence referendum took place. It was declared unconstitutional by the Spanish Constitutional Court, however the Catalan Government ignored it and celebrated it. This led to another court ordering the Spanish Civil Guard and National Police to dismantle voting centers, however their intervention was not pacific. Barcelona was the scenario of several police oppression and chaos, with sources that reported at least 1,066 injured requiring medical attention. Several NGOs condemned the police's violence and reported an excessive use of force.
The referendum sparked the 2017–2018 Spanish constitutional crisis, and later protests took place.
In July 2023, Barcelona was announced as the UNESCO-UIA World Capital of Architecture for the 2024–2026 term. This means it will be the hub for discussion around global challenges including culture, heritage, urban planning and architecture. In addition to being the capital through 2026, it will also host the UIA World Congress of Architects for that year. The honour is befitting of Barcelona, as its history is peppered with architectural achievement and various iconic styles and influences. From its ancient Roman roots, to the Gothic and Modernisme movements, Barcelona has thrived through the way it ties together architecture and culture.
Geography
Location
Barcelona is located on the northeast coast of the Iberian Peninsula, facing the Mediterranean Sea, on a plain approximately 5 km (3 mi) wide limited by the mountain range of Collserola, the Llobregat river to the southwest and the Besòs river to the north. This plain covers an area of 170 km2 (66 sq mi), of which 101 km2 (39.0 sq mi) are occupied by the city itself. It is 120 km (75 mi) south of the Pyrenees and the Catalan border with France.
Tibidabo, 512 m (1,680 ft) high, offers striking views over the city and is topped by the 288.4 m (946.2 ft) Torre de Collserola, a telecommunications tower that is visible from most of the city. Barcelona is peppered with small hills, most of them urbanized, that gave their name to the neighbourhoods built upon them, such as Carmel (267 m or 876 ft), Putxet (es) (181 m or 594 ft) and Rovira (261 m or 856 ft). The escarpment of Montjuïc (173 m or 568 ft), situated to the southeast, overlooks the harbour and is topped by Montjuïc Castle, a fortress built in the 17–18th centuries to control the city as a replacement for the Ciutadella. Today, the fortress is a museum and Montjuïc is home to several sporting and cultural venues, as well as Barcelona's biggest park and gardens.
The city borders on the municipalities of Santa Coloma de Gramenet and Sant Adrià de Besòs to the north; the Mediterranean Sea to the east; El Prat de Llobregat and L'Hospitalet de Llobregat to the south; and Sant Feliu de Llobregat, Sant Just Desvern, Esplugues de Llobregat, Sant Cugat del Vallès, and Montcada i Reixac to the west. The municipality includes two small sparsely-inhabited exclaves to the north-west.
Climate
According to the Köppen climate classification, Barcelona has a hot summer Mediterranean climate (Csa), with mild winters and warm to hot summers, while the rainiest seasons are autumn and spring. The rainfall pattern is characterized by a short (3 months) dry season in summer, as well as less winter rainfall than in a typical Mediterranean climate. However, both June and August are wetter than February, which is unusual for the Mediterranean climate. This subtype, labelled as "Portuguese" by the French geographer George Viers after the climate classification of Emmanuel de Martonne and found in the NW Mediterranean area (e.g. Marseille), can be seen as transitional to the humid subtropical climate (Cfa) found in inland areas.
Barcelona is densely populated, thus heavily influenced by the urban heat island effect. Areas outside of the urbanized districts can have as much as 2 °C of difference in temperatures throughout the year. Its average annual temperature is 21.2 °C (70.2 °F) during the day and 15.1 °C (59.2 °F) at night. The average annual temperature of the sea is about 20 °C (68 °F). In the coldest month, January, the temperature typically ranges from 12 to 18 °C (54 to 64 °F) during the day, 6 to 12 °C (43 to 54 °F) at night and the average sea temperature is 13 °C (55 °F). In the warmest month, August, the typical temperature ranges from 27 to 31 °C (81 to 88 °F) during the day, about 23 °C (73 °F) at night and the average sea temperature is 26 °C (79 °F). Generally, the summer or "holiday" season lasts about six months, from May to October. Two months – April and November – are transitional; sometimes the temperature exceeds 20 °C (68 °F), with an average temperature of 18–19 °C (64–66 °F) during the day and 11–13 °C (52–55 °F) at night. December, January and February are the coldest months, with average temperatures around 15 °C (59 °F) during the day and 9 °C (48 °F) at night. Large fluctuations in temperature are rare, particularly in the summer months. Because of the proximity to the warm sea plus the urban heat island, frosts are very rare in the city of Barcelona. Snow is also very infrequent in the city of Barcelona, but light snowfalls can occur yearly in the nearby Collserola mountains, such as in the Fabra Observatory located in a nearby mountain.
Barcelona averages 78 rainy days per year (≥ 1 mm), and annual average relative humidity is 72%, ranging from 69% in July to 75% in October. Rainfall totals are highest in late summer and autumn (September–November) and lowest in early and mid-summer (June–August), with a secondary winter minimum (February–March). Sunshine duration is 2,524 hours per year, from 138 (average 4.5 hours of sunshine a day) in December to 310 (average 10 hours of sunshine a day) in July.
Demographics
As of 2024, Barcelona has a population of 1,686,208, on a land area of 101.4 km2 (39 sq mi). It is the main component of an administrative area of Greater Barcelona, with a population of 3,218,071 in an area of 636 km2 (246 sq mi) (density 5,060 inhabitants/km2). The population of the urban area was 4,840,000. It is the central nucleus of the Barcelona metropolitan area, which relies on a population of 5,474,482.
In 1900, Barcelona had a population of 533,000, which grew steadily but slowly until 1950, when it started absorbing a high number of people from other less-industrialized parts of Spain. Barcelona's population peaked in 1979 at 1,906,998, and fell throughout the 1980s and 1990s as more people sought a higher quality of life in outlying cities in the Barcelona Metropolitan Area. After bottoming out in 2000 with 1,496,266 residents, the city's population began to rise again as younger people started to return, causing a great increase in housing prices.
Languages spoken
Catalan is the "own language" of Catalonia and Barcelona, and therefore its the main language used by the City Council, in schools and it dominates the linguistic landscape. All toponymy of Barcelona, including the stops of the metro system, are exclusively in the Catalan language. Despite this, Spanish is the most spoken language in Barcelona (according to the linguistic census held by the Government of Catalonia in 2013) and it is understood almost universally. Catalan is also very commonly spoken in the city: it is understood by 95% of the population, while 72.3% can speak it, 79% can read it, and 53% can write it. Knowledge of Catalan has increased significantly in recent decades thanks to a language immersion educational system.
After Catalan and Spanish, the most spoken languages in Barcelona are those from North Africa, such as Amazigh and Arabic, followed by Bengali, Urdu, Punjabi, Mandarin Chinese, Romanian, English, Russian and Quechua, according to data collected by the University of Barcelona.