Data report

What explains crime rates in Catalonia? A comarca-level analysis

Published 28 July 2026

Reported offences per 1,000 residents span an almost fourfold range across Catalonia, from Pallars Sobirà at 20.7 to Barcelonès at 87.7. We test four common explanations against the dataset behind this site: urbanization, poverty, unemployment and immigration. Urbanization dominates, income flips sign under controls, unemployment disappears, and the immigration association weakens once visitor exposure and income are considered.

Summary of findings

  • Urbanization dominates. Crime rate against population density gives a rank correlation of 0.75, far stronger than any other variable we can measure. Most other "explanations" of crime are this one fact wearing different clothes.
  • The poverty hypothesis fails on the raw data (0.18: richer comarques actually report slightly more crime) but is supported once density is held constant (−0.40). Among comarques of similar urbanization, lower income goes with more reported crime.
  • Unemployment has no independent effect. Its raw correlation of 0.37 collapses to −0.04 when density is controlled.
  • The foreign-born share correlates with crime (0.45) and, unlike unemployment, still clears the significance bar when density alone is controlled (0.35). It falls to 0.29, just below the bar, when visitor exposure is added, then weakens further to 0.17 when income joins the controls. With 40 aggregate observations, no independent immigration effect can be separated from tourism and poverty, and comarca-level data cannot attribute any offence to anyone.

The question and the data

The outcome variable is the number of offences reported to the Mossos d'Esquadra per 1,000 registered residents in 2025, available for 40 of 43 comarques. It is the same figure that powers our safest comarques ranking, and its source and coverage are described on the methodology page.

The candidate explanations come from the rest of the dataset: gross disposable household income per inhabitant (Idescat, 2023 provisional, as ranked in highest income per inhabitant), the unemployment rate (lowest unemployment), the share of residents born outside Spain (most international comarques), population density (the inverse of most rural), tourist accommodation per resident (least touristy), median age, the Latin-America-born share, and the share of residents who can speak Catalan (where Catalan is most spoken).

Each hypothesis below is stated the way it circulates in public debate, then tested the same way: first the raw association, then the association after removing what urbanization already explains.

Method: rank correlations and what counts as evidence

All associations are Spearman rank correlations. Comarca metrics are heavily skewed (the Barcelonès has roughly twenty times the density of the median comarca), and rank correlation is invariant to such distortions: it asks only whether higher values of one variable go with higher values of the other, not whether the relationship is linear.

To hold a third variable constant we use partial rank correlation: every variable is converted to ranks, the two ranks of interest are each regressed on the control ranks, and the residuals are correlated. The controls are population density (urbanization) and tourist beds per capita (visitor exposure, explained below). For the immigration hypothesis we add income as a third control, for reasons that section makes clear.

With n = 40, a rank correlation is statistically significant at p < 0.05 (two-sided) when its absolute value exceeds roughly 0.31; each control variable in a partial correlation spends one further degree of freedom and nudges that bar slightly higher. We report around twenty coefficients in this article, so at the 5% level one borderline "significant" value would be expected by chance alone. We therefore lean on magnitudes, robustness checks and consistency across specifications, not on any single threshold crossing.

Everything here is observational, ecological (comarca-level aggregates, not individuals) and from a single period. Correlation, with or without controls, is not causation; the conclusions section spells out exactly which statements the data supports.

Hypothesis 1: crime is an urban phenomenon

Supported, and it is not close. The rank correlation between reported crime and population density is 0.75. The three highest rates are Barcelonès (87.7 offences per 1,000 residents), Alt Empordà (84.8) and Gironès (71.6); the three lowest are Pallars Sobirà (20.7), Ripollès (23.6) and Berguedà (23.8), all rural.

Total population behaves the same way (raw 0.66) and collapses to −0.18 once density is controlled: it is the same fact, not a second one. This is the baseline every other hypothesis must beat, because almost everything else about a comarca (income, age structure, migration, language) also varies with urbanization. A raw correlation with crime is therefore never, by itself, evidence of a distinct mechanism.

0255075100101001,00010,000Alt Camp: 46.4Alt Empordà: 84.8Alt Penedès: 48.1Alt Urgell: 30.5Alta Ribagorça: 35.5Anoia: 34.2Aran: 38.7Bages: 40.6Baix Camp: 51.1Baix Ebre: 46.9Baix Empordà: 59.5Baix Llobregat: 48.1Baix Penedès: 62.8Barcelonès: 87.7Berguedà: 23.8Cerdanya: 40.1Conca de Barberà: 45.5Garraf: 62.7Garrigues: 39.2Garrotxa: 33.6Gironès: 71.6Maresme: 49.8Montsià: 40.8Noguera: 29.1Osona: 38.6Pallars Jussà: 25.1Pallars Sobirà: 20.7Pla d'Urgell: 40.8Priorat: 48.4Ribera d'Ebre: 29.3Ripollès: 23.6Segarra: 33.0Segrià: 60.2Selva: 62.0Solsonès: 34.8Tarragonès: 67.1Terra Alta: 26.2Urgell: 36.0Vallès Occidental: 42.6Vallès Oriental: 43.6Alt EmpordàBarcelonèsPallars SobiràPopulation density (residents/km², log scale)Offences per 1,000 residents
Figure 1. Reported offences per 1,000 residents (2025) against population density (log scale), 40 comarques. Rank correlation 0.75. Labels mark the extremes.

Hypothesis 2: poorer comarques have more crime

The raw data appears to refute this: the correlation between disposable income per inhabitant and crime is 0.18, slightly positive. Higher-income comarques report somewhat more crime, because the highest-income comarques are the urban ones and urban means crime.

Holding density constant flips the sign to −0.40, a textbook case of confounding (often described as Simpson's paradox): comparing comarques of similar urbanization, the poorer one tends to report more crime. The two panels of Figure 2 show the reversal directly.

Honesty requires the robustness checks that weaken it. Restricted to inland comarques (more than 20 km from the coast, n = 25) the adjusted correlation fades to −0.14; dropping the eight most tourist-heavy comarques leaves −0.26 (n = 32). A substantial part of the "poor and high-crime" signal therefore lives on the coast. And when the foreign-born share is added to the controls, the income effect moderates to −0.32: income and immigration overlap so strongly across comarques that, at this sample size, the data cannot fully separate them (see Hypothesis 4). Verdict: supported at equal density, moderately, with the caveat that the effect concentrates in coastal Catalonia.

Raw

025507510016182022Alt Camp: 46.4Alt Empordà: 84.8Alt Penedès: 48.1Alt Urgell: 30.5Alta Ribagorça: 35.5Anoia: 34.2Aran: 38.7Bages: 40.6Baix Camp: 51.1Baix Ebre: 46.9Baix Empordà: 59.5Baix Llobregat: 48.1Baix Penedès: 62.8Barcelonès: 87.7Berguedà: 23.8Cerdanya: 40.1Conca de Barberà: 45.5Garraf: 62.7Garrigues: 39.2Garrotxa: 33.6Gironès: 71.6Maresme: 49.8Montsià: 40.8Noguera: 29.1Osona: 38.6Pallars Jussà: 25.1Pallars Sobirà: 20.7Pla d'Urgell: 40.8Priorat: 48.4Ribera d'Ebre: 29.3Ripollès: 23.6Segarra: 33.0Segrià: 60.2Selva: 62.0Solsonès: 34.8Tarragonès: 67.1Terra Alta: 26.2Urgell: 36.0Vallès Occidental: 42.6Vallès Oriental: 43.6Disposable income per inhabitant (thousand €/year)Offences per 1,000 residents

Density held constant

-20-1001020-20-1001020Alt CampAlt EmpordàAlt PenedèsAlt UrgellAlta RibagorçaAnoiaAranBagesBaix CampBaix EbreBaix EmpordàBaix LlobregatBaix PenedèsBarcelonèsBerguedàCerdanyaConca de BarberàGarrafGarriguesGarrotxaGironèsMaresmeMontsiàNogueraOsonaPallars JussàPallars SobiràPla d'UrgellPrioratRibera d'EbreRipollèsSegarraSegriàSelvaSolsonèsTarragonèsTerra AltaUrgellVallès OccidentalVallès OrientalIncome rank, density removedCrime rank, density removed
Figure 2. The same pair of variables before and after the density control (n = 40). Left: raw, richer comarques report slightly more crime (rank correlation 0.18). Right: after removing what density explains from both variables, the relationship reverses (−0.40). Each axis shows the part of a comarca's rank not explained by density.

Hypothesis 3: unemployment drives crime

Not supported. The raw correlation is 0.37 (n = 40), which looks like evidence until density is controlled: the partial correlation is −0.04, indistinguishable from zero. Unemployment is higher in the urban and southern coastal comarques, which is where crime is higher for reasons the density control already captures. Of the four hypotheses this is the cleanest negative result: no specification we ran leaves an unemployment effect.

Hypothesis 4: more immigration means more crime

This is the claim most often made with the least care, in both directions, so we report it in full. The raw correlation between the foreign-born share and reported crime is 0.45. Unlike the unemployment artifact, it still clears the significance bar after density alone is controlled (0.35), but adding tourist exposure lowers it to 0.29, just inside the indistinguishable-from-zero band. Deleting one comarca at a time leaves a positive association, but the range from 0.23 to 0.41 crosses that same bar. The signal is suggestive, not robust evidence of an independent effect.

Adding disposable income per inhabitant weakens the association further to 0.17, and the overlap is symmetric: income's own adjusted correlation moderates from −0.39 to −0.32 when the foreign-born share is controlled. Foreign-born residents concentrate in exactly the lower-income comarques (agricultural Lleida, the service economies of the tourist coast), so with 40 aggregate observations the variables carry much of the same information. The data cannot separate a possible immigration association from visitor exposure and poverty.

Two further facts argue for restraint. First, the composition problem: the foreign-born share lumps together retired EU citizens on the Empordà coast, Latin American service workers and West African farm labourers. The Latin-America-born share illustrates how misleading a subgroup correlation can be: raw 0.45, apparently one of the strongest relationships in the table, yet it vanishes to −0.06 under the density and tourism controls. That is what a pure geography artifact looks like.

Second, the ecological fallacy: these are comarca-level aggregates. A correlation between a comarca's foreign-born share and its offence rate says nothing about who commits the offences. High-immigration comarques are dense, transited and touristed places where offences against anyone are more frequent. Nothing in this dataset identifies perpetrators, and no comarca-level analysis can. Verdict: a real raw association that survives density alone but not the fuller visitor-exposure or income controls, cannot be attributed to any group, and shrinks in every subset we probed (inland only: 0.28; without the eight most touristic comarques: 0.16).

1 · Raw correlation2 · After controlssignificance bandIncome per inhabitant0.18−0.39Unemployment rate0.370.00Foreign-born share0.450.29Latin-America-born share0.45−0.06Median age−0.47−0.10Total population0.66−0.17Can speak Catalan−0.65−0.18
Figure 3. Every tested variable, before and after controls (density + tourist accommodation). Dashed lines mark the approximate p < 0.05 significance band (|ρ| = 0.31 at n = 40). Values beyond the lines are unlikely to be chance; values inside them are indistinguishable from zero.

Correlations that dissolve under controls

The table below collects every variable we tested. The pattern to notice is how many impressive raw correlations share a single explanation. Median age (−0.47 raw: younger comarques report more crime) collapses to −0.08 because young comarques are urban comarques. The Catalan-speaking share (−0.65 raw, one of the strongest values in the table) drops to −0.27: it tracks rurality, not any protective property of the language. Anyone mining this dataset for a striking crime correlation will find one; the density control is the first question to ask of it.

Full results: Spearman rank correlations with reported crime per 1,000 residents (2025). Controls: population density, then density plus tourist beds per capita. Significance at p < 0.05 requires roughly |ρ| > 0.31 at n = 40.
VariablenRaw ρDensity controlledDensity + tourismReading
Income per inhabitant400.18−0.40−0.39Supported at equal density
Unemployment rate400.37−0.040.00No independent effect
Foreign-born share400.450.350.29Weak with tourism and income
Latin-America-born share400.450.16−0.06Urbanization artifact
Median age40−0.47−0.08−0.10Urbanization artifact
Total population400.66−0.18−0.17Urbanization artifact
Can speak Catalan40−0.65−0.27−0.18Urbanization artifact

What this data cannot tell you

The denominator problem. Crime rates divide offences by registered residents, but offences happen to everyone present, including visitors. In tourist comarques the numerator includes crimes against people the denominator does not count, inflating the rate. The data shows the fingerprint: tourist beds per capita correlate with crime at only −0.14 raw, but at 0.36 once density is controlled, which is why Alt Empordà, a comarca of modest density, posts the region's second-highest rate. We control for tourist accommodation throughout, but it is an imperfect proxy for visitor flows: the Barcelonès has few beds per resident and enormous daily visitor numbers.

The composition problem. "Offences" aggregates bicycle theft with violent crime. The mix almost certainly differs between urban and rural comarques in ways a single total cannot show, and property crime against visitors is a large share of the coastal totals.

Scope. One period (2025), 40 observations, aggregate units. None of the coefficients here identify a causal effect; controls remove the confounders we can measure, not the ones we cannot (policing intensity, reporting propensity, and age structure of the population at risk are all unmeasured).

Conclusions

Ranked by how firmly the data supports them: (1) Reported crime in Catalonia is above all an urbanization phenomenon; density alone orders the comarques better than any social variable we can measure. (2) At comparable urbanization, poorer comarques report more crime, a moderate effect concentrated on the coast. (3) Unemployment adds nothing once urbanization is accounted for. (4) The foreign-born share carries a real raw association that survives density alone, but falls below the evidence bar when visitor exposure is controlled and weakens further with income; being ecological, it cannot attribute a single offence to anyone. The defensible summary of hypothesis 4 is not "no relationship" and not "immigration causes crime"; it is that comarca-level data is the wrong instrument for the question, and anyone quoting a single correlation from it is overreaching.

For a household choosing where to live, the practical reading is simpler: the low-crime comarques are the rural inland ones, and the safest comarques ranking together with the most rural ranking already encodes most of what these correlations can offer.

Explore the data behind this report

Every variable used here has a public page: safest comarques, disposable income per inhabitant, unemployment, foreign-born share, immigration growth 2007 to 2022, population density and tourism pressure. Sources, periods and coverage for every dataset are on the methodology page.

All statistics in this report are computed at build time from the public dataset behind this site (crime: Mossos d'Esquadra via Idescat, 2025; gross disposable household income per inhabitant: Idescat, 2023 provisional; foreign-born share: Idescat, 2025). Method: Spearman rank correlations; partial correlations by OLS on ranks. This page regenerates whenever the dataset updates, so the figures above always match the rankings they link to.