The X,Y,Z affair was an incident between French and American diplomats where they were trying to make a deal that would stop the French from seizing the America ships.
(that resulted in a war known as the Quasi-War.)
Americans were angered by this because the French agents wanted large amounts of money just to stop them from seizing their ships