 That action and anger over the 1797 diplomatic dispute known as the XYZ Affair, resulted in Congress canceling the 1778 Treaties and authorising attacks on French warships in American waters on July 7, 1798, which led to the Quasi-War of 1798–1800.Adams rebuilt the Navy and it gained the upper hand, with limited support from the British Royal Navy.President John Adams continued to seek a diplomatic solution to end the expensive war.