Question: When were the first us immigration laws passed?

context: No context provided
question: When was the first us general immigration law passed?
short_answers: August 3, 1882
context: Pursuant to this power, Congress in 1790 passed the first naturalization law for the United States, the Naturalization Act of 1790. The law enabled those who had resided in the country for two years and had kept their current state of residence for a year to apply for citizenship. However it restricted naturalization to "free white persons" of "good moral character".
question: When was the first us law passed regarding naturalization?
short_answers: 1790

Answer: The first US law passed regarding naturalization was the Naturalization Act of 1790, which enabled those who had resided in the country for two years and had kept their current state of residence for a year to apply for citizenship, but restricted it to "free white persons". The first US general immigration law was passed on August 3, 1882. It was called the Immigration Act of 1882 and imposed a head tax on noncitizens of the United States who came to American ports and restricted certain classes of people from immigrating to America.