It was the "XYZ Affair" that led directly to an undeclared naval war between
the United States and France, since this took place as American diplomats who were sent to France in 1797 to discuss problems between the two nations were treated rudely (in their eyes, at least).