The Treaty of Alliance of (1778) resulted from the success of American forces in the Battle of Saratoga. France and the United States agreed to aid each other in the event of a British attack from the present time and forever. This treaty brought France into the American Revolutionary War, helping to tip the scales towards the American side and giving hope to the revolutionary cause. The Treaty was abrogated in late 1799 after the XYZ Affair.