Which country was involved in the XYZ Affair that led to significant political and diplomatic crisis for which President?

France was involved in the XYZ Affair, which led to a significant political and diplomatic crisis for President John Adams of the United States.