The Espionage Act of 1917 made it a crime to interfere with the war effort, disrupt military recruitment, or to attempt to aid a nation at war with the U.S. Wartime violence on the part of local groups of citizens, sometimes mobs or vigilantes, persuaded some lawmakers that the law was inadequate.