The UB II type submarine was a class of U-boat built during World War I by the German Imperial Navy. They were enlarged from the preceding type UB I and were more effective vessels. The boats were a single hull design with a 50-metre maximum diving depth and a 30-45 second diving time.