What is the Espionage Act?

The Espionage Act of 1917 is a Federal law that makes it a crime for anyone to betray their country by any means that would interfere with the US military.