Original: The music was written by Joseph Haydn in 1797 as an anthem for the birthday of the Austrian Emperor Francis II of the Holy Roman Empire .
Simplified: History The music was written by Haydn in 1797 as the anthem of Austria .