U-31 (S181) is a Type 212A submarine of the German Navy, and the lead ship of her class. U-31 was built by TKMS, with construction taking place at the shipyards of Thyssen Nordseewerke of Emden and Howaldtswerke at Kiel. Launched on 20 March 2002, U-31 was commissioned alongside her sister ship U-32 by German Minister of Defence Peter Struck in Eckernförde on 19 October 2005. U-31 is propelled by one diesel engine and an electric motor driven by nine fuel cells, making the submarine virtually undetectable. Korvettenkapitän Bert Petzold is the submarine's commanding officer.