In 1882, the United States Congress passed the Chinese Exclusion Act, the law that restricted immigration based explicitly on nationality. In practice, the Act banned entry to anyone who was Chinese.