The population of Spain has become more diverse due to immigration of the late 20th and early 21st centuries. From 2000 to 2010, Spain had among the highest per capita immigration rates in the world and the second-highest absolute net migration in the world (after the United States). Immigrants now make up about 10% of the population. But Spain's prolonged economic crisis between 2008 and 2015 reduced economic opportunities, and both immigration rates and the total number of foreigners in the country declined. By the end of this period, Spain was becoming a net emigrant country.