Original: '' God Defend New Zealand '' was written as a poem in the 1870s by Irish-born , Victorian-raised immigrant Thomas Bracken of Dunedin , a freemason .
Simplified: On 1 July 1876 , the poem appeared in a local newspaper as part of a competition .