What domestic and international events caused the 1920s Red Scare in the USA?

Use the book Security and Civil Liberty by: Michael Geary

 

What domestic and international events caused the 1920s Red Scare in the USA? Was Attorney General Palmer justified in his action toward suspected communists (even if they were somewhat heavy-handed)?