What is a U Boat?

A U-boat was invented by the Germans and used during World War I and World War II. It is a type of submarine and the actual name is unterseeboat but was shortened to U-boat.