The "Deutschlandlied" ("Song of Germany"), officially titled "Das Lied der Deutschen" ("The Song of the Germans"), or part of it, has been the national anthem of Germany since 1922. In East Germany, the national anthem was "Auferstanden aus Ruinen" ("Risen from Ruins") between 1949 and 1990.
After World War II and the fall of Nazi Germany, only the third stanza has been used as the national anthem. That stanza's incipit "Einigkeit und Recht und Freiheit" ("Unity and Justice and Freedom") is considered the unofficial national motto of Germany, and is inscribed on modern German Army belt buckles and the rims of some German coins.
The music is the hymn "Gott erhalte Franz den Kaiser", written in 1797 by the Austrian composer Joseph Haydn as an anthem for the birthday of Francis II, Emperor of the Holy Roman Empire and later of Austria. In 1841, the German linguist and poet August Heinrich Hoffmann von Fallersleben wrote the lyrics of "Das Lied der Deutschen" as a new text for that music, counterposing the national unification of Germany to the eulogy of a monarch, lyrics that were considered revolutionary at the time. Along with the flag of Germany, which first appeared in its essentially "modern" form in 1778; it was one of the symbols of the March Revolution of 1848.
In order to endorse its republican and liberal tradition, the song was chosen as the national anthem of Germany in 1922, during the Weimar Republic. West Germany adopted the "Deutschlandlied" as its official national anthem in 1952 for similar reasons, with only the third stanza sung on official occasions. Upon German reunification in 1990, only the third stanza was confirmed as the national anthem.