On May 18, 1804, the Senate proclaimed the First Consul, Napoleon Bonaparte, Emperor of the French. A grandiose coronation ceremony took place on December 2 at Notre Dame Cathedral in Paris. Festivals were staged in the palace, in the capital and all over the country for several days. Celebrations, balls, concerts, fireworks went on non-stop. However, France had to face new wars in the not-so-distant future.
The great battle of Austerlitz (December 2, 1805), won by the French army under Napoleon I, brought the war of the Third Coalition to end. During the war, France opposed an alliance of European countries, including Russia.
Less than a year later, the War of the Fourth coalition (1806-1807) started. The War between joined Russian-Prussian forces against French troops took place in Poland and East Prussia territory.
After the bloody battle of Preussisch-Eylau (February 7-8, 1807), which did not bring victory to either side, hostilities were suspended until spring. Napoleon drew his army across the Passarge River (Polish:nbsp;Pasłęka). The troops were physically exhausted, they had not enough food and ammunition. The muddy ground made it difficult for the army's wagon trains to move.
Fighting resumed at the end of May, and already on June 2, in the Battle of Friedland, the French troops won a decisive victory over the forces of the Fouth coalition. The Russian army was defeated, but avoided destruction and withdrew back across the Neman to its own territory. A letter written by Napoleon in the Finckenstein Palace, where from April 1 to early June 1807 the emperor's headquarters was located, is attributed to this final stage of the war. The addressee of the letter is General Jean Rapp (1773–1821), one of the most loyal commanders of the emperor. After the capture of Danzig (present-day Gdansk in Poland) by General Lefebvre on May 24, Rapp was appointed Governor of the City.
After the conclusion of the Peace of Tilsit (July 7, 1807), Rapp continued to serve as governor of Danzig and stayed in the same position for another two years. For a humane rule, Danzig's citizens presented him with a sword, adorned with diamonds, with the inscription, "To General Rapp, from the city of Danzig with gratitude". Napoleon, by decree of January 28, 1809, granted him the title of Count of the Empire.