After being freed from Napoleonic rule by advancing Cossacks and other following Coalition troops it was once more occupied by Marshal Davout's French XIII Corps on 28 May 1813, at the height of the German Campaign of the war.
Ordered to hold the city at all costs, Davout launched a characteristically energetic campaign against a similar numbered Army of the North made up of Prussian and other Coalition troops under the command of Count von Wallmoden-Gimborn, winning a number of minor engagements.
Neither force was decidedly superior and the war ground to a halt and resulted in a rather stable front line between Lübeck and Lauenburg and further south along the Elbe river, even after the end of the cease-fire of the summer 1813.
In October 1813 a French column's movement towards Dannenberg resulted in the only major engagement in Northern Germany, the Battle of the Göhrde.
Despite steadily shrinking manpower, food and ammunition supplies, Davout's forces displayed no signs of abandoning Hamburg.