There are several theories regarding the origins of the German flag color scheme and its meaning. The most popular theory is that the black and gold combination relates to the colors on the semi-official coat of arms of the Holy Roman Empire. When the Holy Roman Empire ceased to exist these two colors were closely associated with Austria’s Habsburg Dynasty, which became known as the “Black and Gold Monarchy.”
In the radical 1840s the black-red-gold flag was used to symbolize the movement against the Conservative European Order that was established after Napoleon’s defeat. The movement fell apart within a year, but it had succeeded in drafting a constitution that declared “Basic Rights for the German People.”
The Frankfurt Parliament had declared the black-red-gold as the official colors of the German Confederation, with the red symbolized the Hanseatic League and the gold and black symbolizing Austria. These colors soon came to be regarded as the national colors of Germany during this brief period, and especially after their reintroduction during the Weimar period, they have become synonymous with liberalism in general.
The leaders of the 1848 Revolution adopted the tricolor flag in the National Assembly or Frankfurt Parliament
After the Austro-Prussian War in 1866 the South-German States aligned with Austria, including Bavaria, Baden are said to have flown the black-red-gold flag, further illustrating the distinctions between the present day color scheme and the northern, Prussian tradition. On June 25, 1867 the coalition adopted a flag that blended the colors of its largest and smallest member Prussia (black and white) and the Hanseatic League (red and white) into a new black-white-red horizontal tricolor. This flag would also be the national flag for the subsequent German Empire from 1871 to 1918, which finally replaced the German Confederation.
After Germany’s defeat in World War I this German Imperial flag fell into disuse and the new Weimar Republic reinstated the black-red-gold sequence in 1919. When the Nazis came to power in 1933 the black-red-gold flag was replaced with the black-white-red. And in 1935 they replaced all German governmental flags with designs based on the swastika flag that had been their Nazi party flag ( a red flag with a white disk in the center containing a black swastika).
After the defeat of Germany in World War II, Germany was occupied by the Allies. The Allied Control Council banished the existing national flags.
After some debate, the black-red-gold flag was once again adopted as the German federal flag for the Federal Republic of Germany (West Germany) on May 9,1949.
In Germany there is a very modest public use of the flag and national symbols at all. The flag in Germany is used nearly only by official authorities on special occasions or by the public in sport events.