"God Defend New Zealand" (), called "Aotearoa" (; simply "New Zealand") in Māori, is the title of the most popular national anthem of New Zealand. It was originally a poem written by Thomas Bracken in the 1870s until it was set to music by John Joseph Woods as part a competition for ten guineas in 1876. Two years later, Thomas Henry Smith wrote the lyrics in Māori—one of the country's official languages. The anthem was adopted in 1977.