When the U.S Congress passed the Chinese Exclusion Act in 1882, it made it illegal for any immigrant of Chinese descent to enter the country. Other groups of European descent, like the Germans, Irish, and Swedish did not face such harsh discrimination.