Spain's total registered population fell by 205,788 in the 12 months up to February 1st, new figures from the country's national statistics institute, the INE, reveal.
This was the first annual drop in Spain's population since 1996 and means that Spain's official population stood at 47,059,533 at the end of the 12 months in question.
While the number of native Spaniards grew last year by 10,337, the total number of foreigners living in the country fell by 3.8 percent, or 216,125, to 5.52 million.
The number of EU citizens living in Spain on February 1st was also down by almost the same amount, dropping 3.7 percent to 2,352,978.
Percentages for British citizens were also in line with these figures.
During the period in question, some 14,799 British citizens left.
This saw the total number of Brits living in Spain fall 3.7 percent to 383,093.
"Anecdotally, our consulates do not detect a significant change in the British population," Simon Montague, Director of Communications for the British Embassy in Madrid told The Local.
"However, because British residents do not need visas or need to register with the Embassy, it is impossible to know the exact trend."
Montague told The Local that factors affecting where British people chose to live included unemployment levels, tax and VAT changes, and the impact of exchange rates on pension values. He added that the cost of living, house prices and property law issues also played a role.
"But there is no way of knowing which factors — and to what extent — these, and other factors may be influencing individual decisions," said the Embassy spokesperson.
The latest INE figures present an interesting snapshot of Spain's foreign community.
In terms of general figures for EU citizens living in Spain, the Romanians are the largest group (863,635) and UK citizens come in second place with 380,093.
Italians are the third most numerous group with nearly 200,000 (192,147). This is almost unchanged from a year earlier.
Spain's German population, on the other hand, dropped by a steep 7.9 percent up in the year to February 1st to end at 196,878.
The total French population in Spain fell by a little over 4,000 to 121,637.
In terms of the age of foreign residents in Spain, the average age of British people living is Spain was 52, for Germans, this was 50.7 and for French people, this was 41.7.
Meanwhile, the average age of Chinese people in Spain was 29.5 years.
For non-European Union citizens, the largest group was the Moroccans: there were 787,013 Moroccans registered as living in Spain in the period covered by the INE figures.
The communities with the highest percentage of foreigners were the Balearic Island (20.1 percent) and Valencia with 16.8 percent.
But the number of foreigners declined in all populations bar the African enclave of Melilla where numbers were up 1,331.
Traditionally a nation that sent immigrants abroad, Spain saw the number of foreigners living within its borders take off from around half a million in 1996 to around five million in 2006 as a labour-intensive building boom lured low-skilled workers from abroad.
But the flow of immigration to the country has slowed since Spain entered into its worst recession in decades at the end of 2008 as the global credit crisis hastened a correction already underway in its key property sector.