After Napoleonic troops under lieutenant-general Édouard Adolphe Casimir Joseph Mortier had already occupied the electorate's capital at Hanover on 4th June 1803, the remaining Hanoverian troops withdrew to the north bank of the Elbe, into the Duchy of Saxe-Lauenburg, but was soon forced to sign its surrender.