Although Germany was banned from having submarines in the Treaty of Versailles, construction started in secret during the 1930s.
After putting to sea, the U-boats operated mostly on their own trying to find convoys in areas assigned to them by the High Command.