The quasi-war was an undeclared conflict between the United States and France that lasted from 1798 to 1800, primarily fought at sea. This conflict arose from rising tensions due to French interference with American shipping and the U.S. desire to maintain neutrality amidst the European wars. It reflected broader issues of foreign policy and domestic politics during Adams' presidency, particularly concerning the Alien and Sedition Acts.