SM UC-42 was a German Type UC II minelaying submarine or U-boat in the German Imperial Navy (German: Kaiserliche Marine) during World War I. The U-boat was ordered on 20 November 1915 and was launched on 21 September 1916. She was commissioned into the German Imperial Navy on 18 November 1916 as SM UC-42.