Which invention allowed Germany to reduce the shipping capabilities of the Allied powers?

Responses
tank
SONAR
Fokker gear
U-boat

U-boat