SM UB-34 was a German Type UB II submarine or U-boat in the German Imperial Navy (German: Kaiserliche Marine) during World War I. The U-boat was ordered on 22 July 1915 and launched on 5 December 1915. She was commissioned into the German Imperial Navy on 10 June 1916 as SM UB-34. UB-34 sank 31 ships in 21 patrols. They included the William Cory and Son collier SS Hurstwood, which UB-34 torpedoed and sank in the North Sea off Whitby on 5 February 1917.