 Her keel was laid down 21 November 1939, by Blohm & Voss in Hamburg as yard number 529.She was launched on 7 November 1940 and commissioned on 23 December, with "Kapitänleutnant" Karl Thurmann in command.He was captain for her entire career.