What did the Alien Act do?

Gave the president to power to arrest someone for criticizing the government.
Gave people who had immigrated to the U.S. the right to vote.
Prevented any foreign nationals from entering the U.S.
Gave the president to power to deport newly arrived people from the U.S.

The Alien Act, also known as the Alien Enemies Act, was a law passed by the United States Congress in 1798. It gave the president the power to deport or imprison any foreign national suspected of being a threat to national security during times of peace or war. The act applied to people who had immigrated to the U.S. and were not yet citizens, and it allowed the federal government to deport any foreigner who was deemed "dangerous to the peace and safety of the United States."