U-boats were used primarily to
gather information about enemy movements by tracking warships.
protect the German coast from attack by Allied ships and submarines.
resupply troops with guns, ammunition, and food via sea rather than land.
target Allied shipments on passenger ships, warships, and merchant ships.