Viceroy of Italy
As commander of the Imperial Guard (successor to the Consular Guard), Eugène preceded his stepfather to Milan ahead of Napoleon's coronation as King of Italy on 26 May 1805. Napoleon had initially intended to place his brother Joseph on the Italian throne and then, after Joseph's refusal, his nephew Napoléon Charles, the son of Louis Bonaparte and Eugène's sister, Hortense. However, both Joseph and Louis refused, so Napoleon placed the Iron Crown upon his own head instead. During the coronation, Napoleon handed the royal ring and mantle to his stepson and on 7 June 1805 announced Eugène's appointment as Viceroy of Italy to the Italian Legislative Assembly.
In 1805, the War of the Third Coalition was to test Eugène's talents as an organizer, if not as a commander. While General André Masséna commanded the Army of Italy, Eugène raised a reserve army to guard the kingdom's southern border, after Naples broke its neutrality agreement with France. After the French victory at Austerlitz, Napoleon sought to strengthen Bavaria's alliance with France and arranged Eugène's marriage to Princess Augusta of Bavaria, daughter of King Maximilian I Joseph of Bavaria, breaking her engagement to Charles, Hereditary Prince of Baden. On 12 January 1806, Eugène was officially adopted by Napoleon. Though excluded from succession to the French Empire, on 16 February 1806, he was declared heir presumptive to the Italian throne, in the absence of a second son of Napoleon.
Over the following years, Eugène dedicated himself to the management of the Kingdom of Italy, showing himself to be an astute politician and administrator. He oversaw military works (fortification of Mantua, expansion of the Rocca d'Anfo), public works (construction of roads, restoration of the Venetian Arsenal, draining of the marshes around Verona), and the promulgation of the Napoleonic civil, commercial, and penal codes. After the kingdom annexed Marche from the dissolved Papal States, in April 1808, Eugène managed to keep relations with the Holy See from breaking down and rallied the populations of the annexed areas through economic benefits.
During the War of the Fifth Coalition, Eugène was put in command of the Army of Italy with some highly competent generals like Grenier, Charpentier, and the future marshal Étienne MacDonald accompanying him as advisers and officers. In April 1809, he fought and lost the Battle of Sacile against the Austrian army of Archduke John, but Eugène's troops won the rematch at the Battle of the Piave in May and the Battle of Raab in June. After the Battle of Aspern-Essling, Napoleon recalled the Army of Italy to Austria. After joining the main army on the island of Lobau in the Danube, Eugène took part in the Battle of Wagram.
Napoleon considered making Eugène regent of France during the invasion of Russia but ultimately decided against this. During the campaign, Eugène again commanded the Army of Italy (IV Corps), with a total force of 80,000 men. He fought at the battles of Ostrovno, Vitebsk, Smolensk, Borodino, Maloyaroslavets, Krasnoi, and the Berezina. After Napoleon and then Joachim Murat had left the retreating army in December 1812, Eugène took command of the remnants of the Grande Armée at Poznań. He led the retreat to Leipzig from January to May 1813, then served under Napoleon at the Battle of Lützen. Eugène then returned to Italy, where he set about reorganizing his troops and preparing the defence against the Austrian Empire.
Despite the defection of Murat's Kingdom of Naples in January 1814, and pressure from his Bavarian father-in-law, Eugène refused to defect to the Coalition, while also rejecting calls to leave behind his kingdom and join Napoleon in the defence of France. During the Italian Campaign of 1813-1814, he commanded a series of engagements in the Po Valley in order to slow down the enemy advance, which were in effect a series of organized retreats up to the river Adige. Despite some success against the Austrians at the Battle of the Mincio River on 8 February 1814, and successive victories against the Neapolitan Army, he was beaten at the rivers Taro and Nure. On 16 April, five days after Napoleon's abdication of both the French and Italian thrones, Eugène signed the Convention of Schiarino-Rizzino with the Austrian commander Heinrich von Bellegarde, bringing an end to hostilities. His attempt to be crowned King of Italy failed after an insurrection in Milan on 20 April, and Eugène finally relinquished control of the kingdom in the Convention of Mantua on 23 April.