The immigration of foreigners into the United States had begun to be seen as a problem as early as the 1870s, when there was a movement to limit immigration of Chinese and Japanese because of the economic competition they posed. Chinese immigrants had first arrived during the gold rush and then were imported as laborers, mainly to work on building railroads and in other low-wage jobs.

