Spain is losing migrants and its overall population is declining.

For a fifth consecutive year, the population of Spain is declining. According to regional registers, the Spanish population declined in 2016 by just under 18,000 people, the National Statistics Institute announced on Wednesday.

Most of the losses are foreigners, with foreign nationals making up 9,8% of the 46,5 million population. That number does not take into account naturalizations.

At the peak of the labour market crisis in 2013, 500,000 foreigners left the country; by 2016, the outward flow has begun to slow down with just under 70,000 leaving the country, El Pais reports.

The biggest immigrant stock in Spain is roughly balanced between EU and 3rd country nationals. Among EU immigrants, the biggest group is Romanians (684,000), followed by British (236,000) and Italians (189,000). Apparently, the population of British immigrants declined by little under 20,000 people within a year, possibly due to concerns about Brexit.

Moroccans make the biggest non-EU group (747,000), followed by Chinese (207,00) and Colombians (145,000).