As chief-of-staff of the High Command of the German armed forces (1938–45), he handled the armistice negotiations with France in 1940 and ratified the unconditional surrender of Germany in 1945. He was a close adviser of Hitler, and bore some of the responsibility for repressive measures taken by the army in occupied territory. He was hanged after trial at Nuremberg.