The German fleet mainly used unrestricted submarine warfare. Neutral countries disliked the blockades and the sinking of RMS Lusitania especially angered the United States. The successful blockade of Germany contributed to its military defeat in 1918, and still in effect, enforced also the signing of the Treaty of Versailles in mid-1919.