Flags of the Holy Roman Empire
In 1804, Napoleon Bonaparte declared the First French Empire. In response to this, Emperor Francis II of the Habsburg dynasty declared his personal domain to be the Austrian Empire and became Francis I of Austria. Taking the colours of the banner of the Holy Roman Emperor, the flag of the Austrian Empire was black and gold. Francis II was the last Holy Roman Emperor, with Napoleon forcing the empire's dissolution in 1806. After this point, these colours continued to be used as the flag of Austria until 1918.
Electorate of Württemberg
The Electorate of Württemberg was a short-lived State of the Holy Roman Empire on the right bank of the Rhine river. In 1803, Napoleon raised the Duchy of Württemberg to the Electorate of Württemberg, the highest form of a princedom in the Holy Roman Empire. However, soon afterward, on 1 January 1806 the last Elector assumed the title of King of Württemberg. Later, the last Emperor, Francis II, abolished (de facto) the Empire in 6 August 1806.