The XYZ Affair was a diplomatic scandal between the United States and France that led to an undeclared naval war known as the Quasi-War. The XYZ Affair played a significant role in shaping American foreign policy and domestic politics, and contributed to the political divide that eventually led to the Civil War.