The Quasi-War was an undeclared naval war fought between the United States and the French Republic between 1798 and 1801.