Work on understanding the Enigma, and on breaking German military signals, was of vital importance in the Battle of the Atlantic, the greatest threat to Britain during the war. The key event occurred in 1941, when not just a machine, but also a codebook, was got from a German submarine.