In 1944, Schacht was arrested by the Gestapo after the assassination attempt on Hitler on 20 July 1944 because he allegedly had contact with the assassins. Subsequently, he was interned until the end of the Third Reich in the concentration camps Ravensbrück and later at Flossenbürg. In the last days of the war, he was one of the 134 special and clan prisoners who were transported by the SS from Dachau into the "Alpine Fortress" to Niederdorf, South Tyrol, in Italy, where they were freed on 30 April 1945.