The Germans sank all ships entering British waters, regardless of which country they belonged to, until the sinking of the
Lusitania in 1915 almost brought the USA into the war. This was known as
unrestricted warfare. The policy was abandoned until 1917 when an increasingly desperate Germany tried it again, leading the USA to declare war on Germany.