German submarine U-317 was a Type VIIC/41 U-boat of the Nazi German Kriegsmarine during World War II. The submarine was laid down on 12 September 1942 at the Flender Werke at Lübeck, launched on 1 September 1943, and commissioned on 23 October 1943 under the command of Oberleutnant zur See Peter Rahlf.