The XYZ Affair was a political scandal between France and the United States that resulted in a limited, undeclared naval war with France known as the Quasi-War.