At the time that Napoleon became consul, in 1799, France was at war with a coalition of Russia, Great Britain and Austria. He signed a peace treaty in 1802, but it didn’t last, and soon Britain, plus both the other countries and Sweden and Prussia were at war with France again.