With the increased anti-Chinese sentiment, economic depression and growing unemployment rates in the 1870s, Congress passed the Chinese Exclusion Act in 1882 to ban nearly all Chinese immigration to the United States for ten years. Exceptions were made for merchants, students, teachers, diplomats, and travelers.