The statute was used in 1812 against British nationals, during World War I against nationals of the German Empire and Austria-Hungary, and in World War II against Americans of Japanese descent.