What was the Xyz Affair?

The XYZ Affair almost led to a war between the United States of America and France. It happened during the presidency of John Adams, and lasted from 1797 until 1800. You can find more information here: