Bonaparte returned to France from Egypt on 23 August 1799, his campaign there having failed. He seized control of the French government on 9 November, in a bloodless coup d'état, replacing the Directory with the Consulate and transforming the republic into a "de facto" dictatorship. He further reorganised the French military forces, establishing a large reserve army positioned to support campaigns on the Rhine or in Italy. Russia had already been knocked out of the war, and, under Napoleon's leadership, the French decisively defeated the Austrians in June 1800, crippling Austrian capabilities in Italy. Austria was definitively defeated that December, by Moreau's forces in Bavaria. The Austrian defeat was sealed by the Treaty of Lunéville early the following year, further compelling the British to sign the Treaty of Amiens with France, establishing a tenuous peace.