 In 1938, he became an Assistant District Attorney of New York County under District Attorney, and future Governor of New York, Thomas E. Dewey.He left the District Attorneys's office in 1941 to join the U.S. Navy during World War II.During World War II, Thayer was commissioned as a lieutenant commander in the U.S. Navy.