America refused to recognize the right of Germany to declare unrestricted submarine warfare and continued to ship war materials. ... When the Germans sunk the Lusitania American civilians were killed in the "unprovoked" attack. The outrage over this atrocity provided the reason for America to enter the war.
Hope this help!!!