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.
Flag of Germany
In 1804, Napoleon Bonaparte declared the First French Empire. In response to this, Holy Roman 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.
The colours red and white were also significant during this period. When the Holy Roman Empire took part in the Crusades, a war flag was flown alongside the black-gold imperial banner. This flag, known as the "Saint George Flag", was a white cross on a red background: the reverse of the St George's Cross used as the flag of England, and similar to the flag of Denmark. Red and white were also colours of the Hanseatic League (13th–17th century). Hanseatic trading ships were identifiable by their red-white pennants, and most Hanseatic cities adopted red and white as their city colours (see Hanseatic flags). Red and white still feature as the colours of many former Hanseatic cities such as Hamburg or Bremen.