The Chinese Exclusion Act was a United States federal law passed in 1882 that suspended Chinese immigration. It was the first law implemented to prevent an ethnic group from immigrating to the United States and was not repealed until 1943. The law was passed during a period of anti-Chinese sentiment fueled by the economic problems of the 1870s and also influenced United States relations with China for years to come.