The Chinese Exclusion Act of 1882 was one of the first laws passed in the US to prevent a specific ethnic group from entering the country.