As of 2016, there were over 4.418.898 million foreign-born people in Spain, over 10,2% of the total population.
Because of its location in the Iberian Peninsula, the Canary islands and two exclaves in Northern Africa, the territory comprising modern Spain has always been at the crossroads of human migration, having harboured many waves of historical immigration. The Spanish Empire, one of the first global empires and one of the largest in the world, spanned all inhabited continents and throughout the years people from these lands emigrated to Spain in varying numbers.
In migration terms and after centuries of net emigration, Spain has recently experienced large-scale immigration for the first time in modern history. In 1998, immigrants accounted for 3 per cent of the population. By 2008, the share had jumped to 13 per cent — one of the highest in Europe. The two largest groups were Romanians and Moroccans, with a combined 1.4m migrants, that is almost a third of the foreign population.
The population of Spain doubled during the 20th century due to the spectacular demographic boom in the 1960s and early 1970s. The birth rate then plunged by the 1980s, and Spain's population became stagnant, its demographics showing one of the lowest sub-replacement fertility rate in the world..
During the early 21st century, the average year-on-year demographic growth set a new record with its 2003 peak variation of 2.1%, doubling the previous record reached back in the 1960s when a mean year on year growth of 1% was experienced. This trend is far from being reversed at the present moment and, in 2005 alone, the immigrant population of Spain increased by 700,000 people.
According to the Spanish government, there were 5.6 million foreign residents in Spain in 2010; independent estimates put the figure 14% of total population (Red Cross, World Disasters Report 2006). According to the official 2011 census data, almost 800,000 were Romanian, 774,000 were Moroccan, 317,000 were Ecuadorian, 312,000 were British and 250,000 were Colombian [12]. Other important foreign communities are Bolivian (4.1%), German (3.4%), Italian (3.1%), Bulgarian (2.9%), Chinese (2.6%) and Argentine (2.5%). In 2005, a regularization programme increased the legal immigrant population by 700,000 people. Since 2000, Spain has experienced high population growth as a result of immigration flows, despite a birth rate that is only half of the replacement level. This sudden and ongoing inflow of immigrants, particularly those arriving clandestinely by sea, has caused noticeable social tensions.