Holy Roman Empire
The empire was dissolved on 6 August 1806, when the last Holy Roman Emperor Francis II (from 1804, Emperor Francis I of Austria) abdicated, following a military defeat by the French under Napoleon at Austerlitz (see Treaty of Pressburg). Napoleon reorganized much of the Empire into the Confederation of the Rhine, a French satellite. Francis' House of Habsburg-Lorraine survived the demise of the empire, continuing to reign as Emperors of Austria and Kings of Hungary until the Habsburg empire's final dissolution in 1918 in the aftermath of World War I.
Ferdinand II, Holy Roman Emperor
Matthias was elected Holy Roman Emperor only months after Rudolph II died on 20 June 1612. Since Matthias and his two surviving brothers, Maximilian III and Albert VII were childless, his succession in Austria, Bohemia, Hungary and the Holy Roman Empire was uncertain. Matthias made Ferdinand the governor of Lower and Upper Austria and appointed him as his representative in Hungary, but Klesl became his most influential advisor. Klesl wanted to forge a new princely alliance in the Holy Roman Empire with the participation of both Catholic and Protestant princes. Ferdinand and Maximilian III regarded his plan dangerous and sent envoys to Rome to convince the Pope about the importance of a pure Catholic alliance. Although the Catholic League was renewed, it declared, in accordance with Klesl's proposal, the defense of the imperial constitution as its principal purpose instead of the protection of Catholicism. Philip III of Spain announced his claim to succeed Matthias in Bohemia and Hungary, emphasizing that his mother, Anna, who was Matthias' sister, had never renounced her right to the two realms. Matthias and Ferdinand discussed the issue with Zúñiga in Linz in June and July 1613, but they did not reach an agreement. Maximilian III and Albert VII who preferred Ferdinand to Philip III renounced their claims in favor of him in August 1614, but Klesl made several efforts to delay the decision.