In 1917, the U.S. Congress enacted the first widely restrictive immigration law. The uncertainty generated over national security during World War I made it possible for Congress to pass this legislation, and it included several important provisions that paved the way for the 1924 Act.