On 23 September 1944 U-859 was running on the surface, within 23 nautical miles of Penang and the end of her voyage, when she was intercepted in the Malacca Straits by the British submarine HMS Trenchant P331 6 , which had been forewarned of her arrival date and route by decrypted German signals.