image copyrightGetty Images
The arrival of millions of immigrants in recent years has raised Spain's population to an all-time high.
With this, it has transformed its economy and its society, in addition to becoming one of the central issues of the political and social debate, especially in view of the elections on November 29.
The European country reached 49,935,642 inhabitants, according to the provisional count last October by the National Institute of Statistics (INE).
There are almost 2.5 million more than five years ago, and 3.4 million more than ten years ago.
Approximately one in five people living in Spain today was born abroad, compared to one in eight a decade ago.
The growth of the foreign population occurs in a country whose society is aging and where, for years, more people have died than are born.
Latin America has an increasing role in this transformation, with Colombia and Venezuela among the main countries of origin of those who come to Spain to work, reunite with their families or seek better future prospects.
Immigration has brought employees to key sectors such as construction, agriculture, hospitality and elder care and has contributed to the growth of the Spanish economy.
End of Most read
The increase in population has also increased the demand for housing and public services, increasing competition for both in a country that has barely been able to expand its supply.
Added to this are debates about security, integration and the conditions that must be met by those who arrive to settle in Spain.
Thus, immigration has thus become one of the big issues of next Sunday's general elections.
While the government and the left-wing parties are committed to maintaining the current migratory flows, highlighting the positive impact that the arrival of foreigners has had on the Spanish economy, the right-wing opposition forces propose more restrictive measures, attributing the problem of access to housing and the deterioration of public services to the increase in the population registered in recent years.
Those who have made Spain grow
In Spain there are fewer and fewer babies: although they rose 1.2% last year, births have fallen by almost a quarter in a decade, from about 420,000 in 2015 to 321,000 in 2025.
That year, some 121,000 more deaths than births were recorded.
Despite this, the country gained some 468,000 inhabitants due to the massive arrival of migrants, according to provisional data from the INE.
Immigration to Spain has gone through several phases so far this century, as Carmen González Enríquez, professor of Political Science at the National University of Distance Education (UNED), explains to BBC Mundo.
The academic places a first stage of intense growth between 2000 and 2008, followed by the slowdown of the economic crisis.
The most intense phase, however, came from 2017, "briefly slowed during the pandemic period and with a new increase in arrivals from 2022."
All the news you need is on BBC World Service
Download it here
End of Ad app
The 2025 census reflects that rebound: of the residents born abroad at the beginning of that year, almost one in four had arrived in the previous two years.
We are talking about 2.3 million people, which placed Spain as the number one European destination for permanent immigration in the period 2023-24, above the 2.2 million in Germany, according to Eurostat data.
But why would so many people want to settle in a country with lower wages and higher unemployment than other Western countries?
The Spanish unemployment rate is around 10.3% compared to 4.1% in Germany, while the average annual gross salary is 51% lower than the German one, 28.9% lower than the French one and 50% lower than the British one, according to OECD data from 2025 at the current exchange rate in euros.
"Compared to the countries of origin, the Spanish situation is attractive. Furthermore, jobs have been created here for the majority of those who have arrived, in addition to security and access to public health and education," explains González Enríquez.
These conditions also occur in other European countries, so a decisive factor, the academic points out, is "the Spanish language, which is something very important for those who come from Latin America."
At the beginning of 2025, some 4.7 million foreign-born residents came from Latin America, almost half of the total, according to the INE.
Of them, about 1.3 million had arrived in 2023 or 2024, with Colombia and Venezuela among the main countries of origin.
By country of birth, the largest group was from Morocco, with nearly 1.2 million residents.
For many Latin Americans, the shared language and networks of family and acquaintances also facilitate arrival and settling in the country.
In October 2026 there were some 3.7 million foreign workers affiliated with Social Security, almost 600,000 more than a year before and 16.4% of the total.
Their contributions help finance pensions and other benefits.
They represented a third of wage earners affiliated in hospitality, nearly three out of ten in agriculture and construction, and half in domestic employment.
Incorporation is especially relevant for an aging society: 40.6% of contributors from outside the European Union were under 35 years old, compared to 24.6% of Spaniards.
How the economy has changed
Between the end of 2019 and the first quarter of 2026, almost two out of every three jobs that were generated in Spain corresponded to workers of foreign nationality or with dual nationality, according to BBVA Research.
Their incorporation "provides essential labor in sectors with a severe shortage of workers, favoring the mobility of natives towards more qualified positions," Professor Dolores Jiménez Rubio, from the Department of Applied Economics at the University of Granada, explains to BBC Mundo.
"In addition, in line with international evidence, it has had a very limited impact on the employment of the native population and has contributed significantly to GDP growth," he adds, taking data from the Bank of Spain's Annual Report 2025 as a reference.
For example, some economists point out that the arrival of foreign workers in the transportation and logistics sectors has helped companies that depend on those services to grow and hire more qualified personnel.
Immigration has also changed the landscape of entrepreneurship: in ten years, the number of foreigners registered as self-employed with Social Security practically doubled, from around 279,000 in October 2016 to 557,000 in October 2026.
In telecommunications and computer programming, one in three self-employed workers has foreign nationality.
According to the Global Entrepreneurship Monitor (GEM) Spain 2025-2026 report, which studies business creation, people of migrant origin "show a greater propensity for entrepreneurship than natives" and begin to work on their own at an earlier age.
Among those born in Spanish territory, however, it is more common to be in charge of a business that has been in operation for more than three and a half years.
According to a study by the Bank of Spain, those born abroad contributed close to a quarter of the growth in Spanish real GDP between 2022 and 2024, which reached an average of 2.9% annually.
However, salaries remain a problem.
Carmen González Enríquez points out that a good part of those who arrive join "labor-intensive sectors, which pay low wages."
In the hospitality industry, for example, the average annual salary was about 17,650 euros (about US$18,500) in 2024, 40% below the national average, according to the INE.
And with those salaries you have to pay for a home, at a time when both purchase and rental prices have skyrocketed and supply is scarce in the cities where employment is concentrated.
In 2025, Spain added some 240,000 homes and only 92,000 homes were completed, according to the Bank of Spain.
In Spanish maternity hospitals, it is increasingly common for a baby and its mother to have been born in different countries.
In 2015 it occurred in 22.9% of births; Ten years later, the proportion had risen to 34.4%, just over one in three, according to the INE.
For academic González Enríquez, the change is seen above all in the daily life of large cities, where "we are continually interacting with people who come from other origins."
Madrid, Barcelona and Valencia gained population thanks to arrivals from abroad in 2024, despite the fact that in the three cities more residents moved to other Spanish municipalities than those who arrived from them.
And in the so-called "emptied Spain" the arrival of young families helps slow aging: in towns with less than 1,000 inhabitants, one in four children under 13 years of age has a foreign mother, according to the Economic and Social Council.
Two trends are occurring in the classrooms at the same time: in the 2025-26 academic year, the number of students of foreign nationality in primary school increased, while the total number of schoolchildren at that stage fell by almost 49,000, according to the Ministry of Education.
For neighborhoods that gain neighbors, however, the challenge is to open classrooms or medical consultations at the rate that the population grows, something that does not always happen, increasing pressure on these services.
And what has happened to security? In 2025, there were 15.3 adults convicted by a final sentence for every 1,000 adult residents of foreign nationality, compared to 6.1 among Spaniards, according to the INE.
BBC Mundo spoke with sociologist Jesús Javier Sánchez Barricarte, from the Carlos III University of Madrid, who studied crimes with conviction between 2007 and 2023.
"Crime is concentrated in men and young adults, and the foreign population is younger and has more men," says Sánchez Barricarte.
He explains that, when comparing both groups as if they had the same age and sex composition, the difference between their rates of convicted crimes is reduced by almost half.
Regarding origins, the sociologist points out that "adjusted for age and sex, the rates of crimes with conviction of Chinese, Indians, Filipinos, Pakistanis or Americans are clearly lower than the Spanish rate; those of Italians, Malians and Germans, somewhat lower or similar; those of Moroccans, French or Colombians, between double and triple, and those of Ecuadorians and Algerians, higher than triple."
In any case, most experts maintain that there is no direct relationship between immigration and insecurity.
Academic Carmen González Enríquez highlights that coexistence with immigrants in Spain is, "in general terms, good, very good."
Why immigration is key in the 29N elections
On November 29, the Spanish will elect a new Parliament that must invest a president.
Whether the socialist Pedro Sánchez (PSOE) can continue to lead the government with the support of the leftist Frente Amplio and other forces will depend on the support that each candidate gathers in Congress, or if the conservative Alberto Núñez Feijóo, leader of the Popular Party (PP), manages to form a majority that could include Vox on his right.
One of the big differences between the proposals of both blocks is what to do with those who already live in Spain without a residence permit.
In April, Sánchez's government opened an extraordinary process to regularize his situation that in just over two months received 1.17 million applications, two out of every three of them from people from Central or South America.
The Frente Amplio, which brings together left-wing parties, proposes making this path permanent.
On the other hand, the PP wants to prohibit massive regularizations and set each year how many workers can arrive and for which sectors, according to unfilled positions and reception capacity.
Vox, considered by its rivals as a far-right party, proposes, among other measures, expelling those who remain in the country in an irregular situation and foreigners who repeatedly commit serious crimes or minor crimes.
It also defends the concept of "national priority", which consists of giving preference to Spaniards over foreigners in access to "public housing, daycare places, dining or transportation vouchers, aid, benefits and social services", according to its electoral program.
The campaign also arrives a few months after the Ceuta crisis.
At the end of July, tens of thousands of people crossed the border that separates Morocco from this Spanish city in North Africa in two days, causing serious disruptions to daily life that in part persist to this day.
Meanwhile, in the Canary Islands the arrival of migrants by sea continues: around 24,000 so far this year until mid-November
And what weight will all this have on the outcome of the elections?
At the beginning of November, the polling company 40dB asked Spaniards to choose up to two issues that, in their opinion, were at stake in the elections.
One in four pointed to immigration, which came in third place behind housing and pensions and public services.
Almost half of those who voted for Vox in 2023 chose this option, compared to 30% of PP voters and 15% of the socialists.
In that same survey, Vox was the party most cited when asking which party was best prepared to manage immigration.
"The issue of immigration favors the vote more for the right, since it has spoken more about the issue, about proposals for change, than the left," says Professor González Enríquez.
Among those who will go to the polls there are also Spaniards who once arrived as immigrants. What do we know about his vote?
A study published last year analyzed how this group votes.
Among first-generation immigrants who said who they had voted for, 59% chose the left and 41% chose the right, according to the work of economists Santiago Pérez-Nievas and Carles Pamies, who analyzed four surveys conducted between 2013 and 2023.
However, among his children, already born in Spain, the panorama changed.
"In the second generation, the distribution of the vote to left-wing and right-wing parties is similar to that observed among natives," the authors write.
What is certain is that this Sunday, November 29, immigration will weigh at the polls, both among those born in Spain and among those who one day arrived in the country and now share the responsibility of deciding the future of the country.
Graphics by the BBC Mundo visual journalism team.
Download the new BBC World Service app. Choose BBC News Mundo and receive news alerts, documentaries and analysis, all in one place. Important: The new app is not available in the United Kingdom or the United States.
You can also follow us on YouTube, Instagram, TikTok, Facebook, X and our WhatsApp channel.
And don't forget to subscribe to our newsletter here to receive a special selection of our best content every Friday.
Discover more
Video
End of Video




