The National Security Act of 1947 was a law enacting major restructuring of the United States government's military and intelligence agencies following World War II.