The military history of New Zealand is an aspect of the history of New Zealand that spans several hundred years. Before European contact, Māori iwi (tribes) engaged in intertribal warfare as the region reached its carrying capacity. The early 19th century saw the outbreak of the Musket Wars, where the introduction of firearms intensified Māori conflicts and led to significant shifts in tribal dynamics and territorial boundaries.

The mid-19th century was marked by the New Zealand Wars, a series of confrontations from 1845 to 1872 between various Māori groups and British colonial forces, along with their Māori allies, primarily over land disputes and sovereignty. These wars resulted in substantial land confiscations from Māori communities.

In the late 19th and early 20th centuries, New Zealand contributed troops to British military campaigns during the Second Boer War and both World Wars. During the Cold War, it participated in multilateral and U.S.-led military operations in southeast Asia in support of the Western Bloc, while also engaging in peacekeeping missions. New Zealand continued to participate in multilateral military coalitions in the 21st century, particularly in the Greater Middle East.

Māori warfare pre-1808

In Making Peoples James Belich argues that wars were probably uncommon in the few centuries immediately after the arrival of Māori in New Zealand in about 1280 CE. Wars eventually broke out between tribal groups for practical reasons like population pressures, competition for land and natural resources, and the need to protect food supplies. The rise and development of fortified Māori villages, or "pā", in the 16th century suggests growing concerns from Māori tribes for defending valuable horticultural areas, with 98 per cent of pā situated in these areas. Several military campaigns were also fought for cultural reasons, often linked to the concepts of mana and utu, with some conflicts beginning because a tribal group wanted to increase tribal or personal mana, or a cultural requirement to make reprisals in response to insults, injury, or trespassing.

War parties typically used stone or wood weapons designed for hand-to-hand combat. Warriors were often armed with a long-handled staff like a taiaha, and a shorter club like a patu. Warriors typically only wore a kilt and a tātua, although in some cases, cloaks were worn to shield themselves against spear thrusts.

Wars were often fought through war parties called a taua, which can range from a small group to several hundred people. Larger war parties often travelled in a waka taua, or war party canoe. War parties would often employ deception to trick opposing tribes into letting their guard down or draw them out of a pā. Battles typically took place in the summer months after tribes had completed their harvest. After the battle, the victors would enslave the prisoners of the defeated people, although in some cases, the prisoners would be killed and eaten. The consequences of the defeated people depended on the closeness between the two groups. In some cases, the victors would marry women from the defeated group, and the tribes would merge. The largest battle prior to the introduction of muskets was the Battle of Hingakaka in 1807, which involved several thousand combatants.

Warfare on the Chatham Islands was nonexistent from the 16th century to the 19th century after the Moriori living on the island were able to forge a continuous period of peace. The continuous peace was established after a series of conflicts, when a local chief, Nunuku-whenua, declared an end to war, and a permanent restriction on murder and cannibalism.

Early contact period Musket Wars (1818–1830s)

The introduction of muskets in the early 19th century led to the Musket Wars, a series of battles and wars among Māori tribes from 1818 to 1840. The Musket Wars was the most geographically widespread conflict in New Zealand, affecting all parts of the North and South islands as well as the Chatham Islands. Despite the conflict's name, muskets didn't fundamentally change tribal relations, with historians like Angela Ballara pointing out that many of the conflicts during the Musket Wars would have occurred regardless – albeit at a less destructive scale. The introduction of potatoes to New Zealand had a much greater effect on how wars were fought in the region. The introduction of potatoes enabled more men to fight, as potatoes were an easier crop to harvest and provided more food per hectare than traditionally grown crops. The surplus in food stores also provided war parties the opportunity to travel greater distances to fight their wars. European ships also extended the reach war parties were able to travel.

Although the introduction of muskets provided war parties with the opportunity to fight at a distance, there was no immediate change in how wars were conducted, with changes in weaponry and strategy taking place in phases. However, it did transform agricultural practices, as economic production shifted to finance the acquisition of muskets from European traders until tribal armouries were filled. Strategies also changed as war parties adopted volley fire tactics, and "gunfighter pā" were developed in response to the use of muskets.

Ngāpuhi were the first Māori tribes to use muskets in a tribal conflict. At the Battle of Moremonui around 1807–08, a Ngāti Whātua war party armed with traditional weapons successfully ambushed a Ngāpuhi war party armed with muskets. Although they were defeated, a Ngāpuhi rangatira, Hongi Hika, became convinced of the musket's shock value and worked to stockpile more muskets. By 1818, Hongi had acquired enough muskets to lead a taua to raid villages along the Bay of Plenty. Their campaign around the Bay of Plenty and a subsequent campaign in the Coromandel Peninsula in 1821 resulted in the capture of 4,000 slaves. Most of these slaves were put to work dressing flax to be traded for additional muskets. In 1825, Hongi defeated Ngāti Whātua at Kaipara. However, by the mid-1820s, Ngāpuhi dominance had begun to wane, as they did not have the infrastructure to maintain these large-scale campaigns and other tribes had begun to adapt to gunpowder warfare. Hongi's death in 1827 hastened the end of large-scale tribal conflicts, as other Ngāpuhi rangatira unable to inspire the number of warriors Hongi. Ngāpuhi were also weakened by an inter-hapū conflict, fought between northern and southern Ngāpuhi hapū over control of Kororāreka, an important centre for European trade.

Nonetheless, Ngāpuhi's stockpiling of muskets and their subsequent military campaigns had altered the balance of power and prompted an arms race in the region, as tribes who felt threatened stockpiled their own muskets and launched their own campaigns to secure their territories. Waikato Tainui launched several campaigns against tribes around Hawke's Bay and Taranaki in the mid-1820s to the 1830s, successfully securing their territory from northern incursion, and expelling Ngāti Toa, Ngāti Maru, and a large number of Ngāti Raukawa from Waikato.

Ngāti Toa and their allies also embarked on several campaigns following their expulsion from the Waikato coast in 1821. Led by Te Rauparaha, Ngāti Toa migrated to the Kāpiti Coast, an area seen as desirable due to its proximity to European trade, and captured the Kāpiti Island from the Muaūpoko. The desirability of the location led to several skirmishes culminating in the battle of Waiorua in 1824, in which Ngāti Toa emerged victorious. Wanting to extend his trading strength, Te Rauparaha launched several campaigns against the tribes of the South Island and the Chatham Islands. Campaigns to the Chatham Islands resulted in the Moriori genocide, where a population of about 2,000 was reduced to 101 by 1862.

These conflicts began to subside in the 1830s, as tribal economies could no longer support the large-scale campaigns fought in the 1820s. Many tribes had also become well-armed, making quick and decisive battles less feasible. It is estimated that 18,000 to 20,000 civilians and combatants were killed during the conflict. The Musket Wars saw tribal boundaries redrawn, which later became codified by the Māori Land Court, which determined that boundaries would be set as they were in 1840 when the Treaty of Waitangi was signed.

Early British-Māori engagements The Harriet Affair in 1834 was the first engagement fought between the Māori and the British. A British expedition was dispatched to Taranaki by the governor of New South Wales, Richard Bourke, at the request of John Guard, to rescue his wife Betty Guard and their two children following their kidnapping by local Māori of the Taranaki and Ngāti Ruanui iwi. The expedition was subsequently criticised for the use of excessive force against the Māori people in a British House of Commons report in 1835.

Wairau Affray (1843)

The Wairau Affray was an early engagement between Ngāti Toa and British settlers in Nelson and the New Zealand Company. After the company refused to adhere to Ngāti Toa orders to halt the survey in lands that were not included in the company's purchases in 1839, Te Rauparaha moved into the area and burnt the surveyor's shelters. Sensing an opportunity, Nelson settlers ordered the arrest of Te Rauparaha and Te Rangihaeata on charges of arson and sent an armed posse to arrest the two.

The armed posse converged on Ngāti Toa party on 17 June 1843. Rising tensions between the two parties erupted into a skirmish that resulted in the death of nine settlers and two Māori. Four more settlers were killed during a disorganised retreat, and the remaining nine were captured and later executed. The governor of New Zealand, Robert FitzRoy, resisted calls from settlers to bring those responsible for the posse's death to justice, and instead ruled that the New Zealand Company had provoked the Ngāti Toa by continuing the survey even though the Nelson settlers lacked any legitimate claims to land beyond Tasman Bay. The British Colonial Office approved of FitzRoy's response, as they did not want to incur the expense of a military campaign against Ngāti Toa.

Colonial period New Zealand Wars (1845–1872)

The New Zealand Wars were a series of conflicts from 1845 to 1872, involving some iwi Māori and government forces, the latter including British and colonial troops and their Māori allies. The term New Zealand Wars is the most common name for the series of conflicts, a term used as early as 1920. The Land Wars was another popular term for the series of conflicts, as the cause for these wars partially stemmed from land disputes. Other terms used since the late 1960s include the Anglo-Māori wars, the New Zealand civil wars, and the sovereignty wars. Māori names for the conflict include Ngā pakanga o Aotearoa (the New Zealand wars) and Te riri Pākehā (the white man's anger).

The first series of wars occurred in 1845, although the most sustained and widespread clashes occurred in the early 1860s between British imperial forces and the Māori King Movement. By 1865, around 10,000 imperial soldiers had been deployed to New Zealand due to these sustained conflicts. However, by the end of 1864, in response to mounting British criticism over the colonial government's attitudes to the Māori and concerns over the cost of maintaining imperial troops, the colonial government implemented a "self-reliant" policy, aiming to replace imperial troops with local forces and Māori auxiliaries. Most British troops departed New Zealand in 1866 and 1867, although the last British regiment did not depart until 1870.