Until the late nineteenth century, the US had no formal immigration restrictions. The border was essentially open, with only customs controls directed at shipping. In 1882, after 200,000 Chinese laborers immigrated to build the railroads and perform farm labor in the West, Congress passed the Chinese Exclusion Act to prohibit their further immigration.

