Immigration has been a major source of population growth and cultural change throughout much of the history of Sweden, and in recent centuries the country has been transformed from a nation of net emigration, ending after World War I, to a nation of net immigration, from World War II onwards. The economic, social, and political aspects of immigration have caused controversy regarding ethnicity, economic benefits, jobs for non-immigrants, settlement patterns, impact on upward social mobility, crime, and voting behaviour.