Congress passed the Chinese Exclusion Act, the first federal law to ban immigration based on nationality, barring Chinese laborers from entering the United States for ten years. The act formalized racial discrimination in immigration policy and remained in force until 1943, shaping a half-century of Asian-American exclusion and anti-immigrant sentiment.