German submarine U-110 was captured by the Royal Navy, who found an Enigma cipher machine onboard.

The capture of U-110 was kept secret for months to allow time for British codebreakers to make full use of the captured Enigma Machine to decrypt German communications.

Source