German submarine U-586 was a Type VIIC U-boat built for Nazi Germany's Kriegsmarine for service during World War II. She was laid down on 1 October 1940 by Blohm & Voss in Hamburg as yard number 562, launched on 10 July 1941 and commissioned on 4 September 1941 under Kapitänleutnant Dietrich von der Esch.
German Type VIIC submarines were preceded by the shorter Type VIIB submarines. U-586 had a displacement of when at the surface and while submerged. She had a total length of , a pressure hull length of , a beam of , a height of , and a draught of . The submarine was powered by two Germaniawerft F46 four-stroke, six-cylinder supercharged diesel engines producing a total of for use while surfaced, two Brown, Boveri & Cie GG UB 720/8 double-acting electric motors producing a total of for use while submerged. She had two shafts and two propellers. The boat was capable of operating at depths of up to .
The submarine had a maximum surface speed of and a maximum submerged speed of . When submerged, the boat could operate for at ; when surfaced, she could travel at . U-586 was fitted with five torpedo tubes (four fitted at the bow and one at the stern), fourteen torpedoes, one SK C/35 naval gun, 220 rounds, and a C/30 anti-aircraft gun. The boat had a complement of between forty-four and sixty.
The boat's service began on 4 September 1941 with training as part of the 6th U-boat Flotilla. She was transferred to the 11th U-boat Flotilla on 1 July 1942 and then to the 13th U-boat Flotilla on 1 June 1943. She returned to the 6th U-boat Flotilla a short while later on 1 October 1943, and then to her final assignment with 29th U-boat Flotilla in the Mediterranean.
In 13 patrols she sank two merchant ships for a total of , plus one merchant ship damaged.
She took part in ten wolfpacks, namely:
She was sunk whilst alongside at Missiessy East Quay, Toulon, France, by a USAAF air raid by B-24 Liberator bombers of 15th Air Force on 5 July 1944.