The next emperor, his son Francis II (1792–1835), found himself at war with France in the First (1792–1797) and Second (1798–1802) Coalition wars, the prelude to the Napoleonic Wars (1803–1815), in which Austria lost further territory. Following further Austrian losses in the Third Coalition War (1803–1806) the future of the Habsburg Empire looked increasingly uncertain. Napoleon had declared himself Emperor of France in May 1804 and was busy reorganising much of the lands of the Holy Roman Empire, and looked to be assuming the title of emperor too, as a second Charlemagne. Francis II responded by proclaiming the Empire of Austria in August, taking the new title of Emperor. In 1806, having held both titles in the interim, he resigned the imperial crown of the Holy Roman Empire of the German Nation, which then ceased to exist.