Amid worries that immigrants could sympathise with the French, the Alien Enemies Act was created to give the president wide powers to imprison and deport noncitizens in time of war.