Emperor
The first Austrian Emperor was the last Holy Roman Emperor Francis II. In the face of aggressions by Napoleon, Francis feared for the future of the Holy Roman Empire. He wished to maintain his and his family's Imperial status in the event that the Holy Roman Empire should be dissolved, as it indeed was in 1806 when an Austrian-led army suffered a humiliating defeat at the Battle of Austerlitz. After which, the victorious Napoleon proceeded to dismantle the old "Reich" by severing a good portion from the empire and turning it into a separate Confederation of the Rhine. With the size of his imperial realm significantly reduced, Francis II, "Holy Roman Emperor" became Francis I, "Emperor of Austria". The new imperial title may have sounded less prestigious than the old one, but Francis' dynasty continued to rule from Austria and a Habsburg monarch was still an emperor ("Kaiser"), and not just merely a king ("König"), in name.
Duchy of Württemberg
The Duchy of Württemberg () was a duchy located in the south-western part of the Holy Roman Empire. It was a member of the Holy Roman Empire from 1495 to 1806. The dukedom's long survival for nearly four centuries was mainly due to its size, being larger than its immediate neighbors. During the Protestant Reformation, Württemberg faced great pressure from the Holy Roman Empire to remain a member. Württemberg resisted repeated French invasions in the 17th and 18th centuries. Württemberg was directly in the path of French and Austrian armies who were engaged in the long rivalry between the House of Bourbon and the House of Habsburg. In 1803, Napoleon raised the duchy to be the Electorate of Württemberg of the Holy Roman Empire. On 1 January 1806, the last Elector assumed the title of King of Württemberg. Later this year, on 6 August 1806, the last Emperor, Francis II, abolished (de facto) the Holy Roman Empire.