From the moment John Adams entered the presidency in 1797, the United States was in a state of undeclared war with France.