structural:scholar_edition
Early history

The Auckland isthmus was settled by Māori around 1350, and was valued for its rich and fertile land. Many pā (fortified villages) were created, mainly on the volcanic peaks. By the early 1700s, Te Waiohua, a confederation of tribes such as Ngā Oho, Ngā Riki and Ngā Iwi, became the main influential force on the Auckland isthmus, with major pā located at Maungakiekie / One Tree Hill, Māngere Mountain and Maungataketake. The confederation came to an end around 1741, when paramount chief Kiwi Tāmaki was killed in battle by Ngāti Whātua hapū Te Taoū chief Te Waha-akiaki. From the 1740s onwards, Ngāti Whātua Ōrākei became the major influential force on the Auckland isthmus. The Māori population in the area is estimated to have been about 20,000 before the arrival of Europeans. The introduction of firearms at the end of the eighteenth century, which began in Northland, upset the balance of power and led to devastating intertribal warfare beginning in 1807, causing iwi who lacked the new weapons to seek refuge in areas less exposed to coastal raids. As a result, the region had relatively low numbers of Māori when settlement by European New Zealanders began.

On 20 March 1840 in the Manukau Harbour area where Ngāti Whātua farmed, paramount chief Apihai Te Kawau signed the Treaty of Waitangi. Ngāti Whātua sought British protection from Ngāpuhi as well as a reciprocal relationship with the Crown and the Church. Soon after signing the treaty, Ngāti Whātua Ōrākei made a strategic gift of 3,500 acres (1,400 ha) of land on the Waitematā Harbour to the new Governor of New Zealand, William Hobson, for the new capital, which Hobson named for George Eden, Earl of Auckland, then Viceroy of India. Auckland was founded on 18 September 1840 and was officially declared New Zealand's capital in 1841, and the transfer of the administration from Russell (now Old Russell) in the Bay of Islands was completed in 1842. However, even in 1840 Port Nicholson (later renamed Wellington) was seen as a better choice for an administrative capital because of its proximity to the South Island, and Wellington became the capital in 1865. After losing its status as capital, Auckland remained the principal city of the Auckland Province until the provincial system was abolished in 1876.

In response to the ongoing rebellion by Hōne Heke in the mid-1840s, the government encouraged retired but fit British soldiers and their families to migrate to Auckland to form a defence line around the port settlement as garrison soldiers. By the time the first Fencibles arrived in 1848, the Northern War had concluded. Outlying defensive towns were then constructed to the south, stretching in a line from the port village of Onehunga in the west to Howick in the east. Each of the four settlements had about 800 settlers; the men were fully armed in case of emergency, but spent nearly all their time breaking in the land and establishing roads.

In the early 1860s, Auckland became a base against the Māori King Movement, and the 12,000 Imperial soldiers stationed there led to a strong boost to local commerce. This, and continued road building towards the south into the Waikato region, enabled Pākehā (European New Zealanders) influence to spread from Auckland. The city's population grew fairly rapidly, from 1,500 in 1841 to 3,635 in 1845, then to 12,423 by 1864. The growth occurred similarly to other mercantile -dominated cities, mainly around the port and with problems of overcrowding and pollution. Auckland's population of ex-soldiers was far greater than that of other settlements: about 50 per cent of the population was Irish, which contrasted heavily with the majority English settlers in Wellington, Christchurch or New Plymouth. The majority of settlers in the early period were assisted by receiving cheap passage to New Zealand.