In 1807, the Musket Wars broke out as chiefs from the northern Ngāpuhi, now equipped with firearms, launched attacks on weaker tribes to the south. The ongoing conflict reached the east coast when, in 1822, a Ngāti Tuwharetoa war party led by Mananui Te Heuheu Tukino II crossed into Ngāti Kahungunu territory. Armed with muskets, Te Heuheu had come to assist Ngāi Te Upokoiri in retaking their lost pā of Te Roto-a-Tara. Te Roto-a-Tara was a fortified island in Lake Roto-a-Tara near the present-day site of Te Aute in Heretaunga. The pā had historically been an important strategic asset of Ngāi Te Upokoiri, but it had recently been occupied by Tangiteruru, a Ngāti Porou chief who had invaded Heretaunga with the help of Ngāti Maru. After the arrival of Te Heuheu's war party, Tangiteruru abandoned the pā. However it was swiftly reoccupied by Te Pareihe, a young chief of Ngāi Te Whatu-i-Āpiti. Te Heuheu laid siege to the pā but failed to capture it. After his brother was killed in a skirmish at nearby Waimarama, Te Heuheu abandoned his siege of Roto-a-Tara and raided the pā at Waimarama instead. Following this, he returned to Ngāti Tuwharetoa to regroup and prepare for a second assault on Te Roto-a-Tara. Returning weeks later, Te Heuheu was joined by a Ngāti Raukawa war party led by Te Whatanui, and together they devised a plan to assault the island fortress. They constructed a causeway enabling them to make the crossing from the shore of the lake to Te Roto-a-Tara pā. Te Pareihe commanded such a strong resistance in the ensuing battle that Te Heuheu and Te Whatanui were thrown back in total defeat, with the loss of over 500 chiefs. Te Pareihe abandoned Te Roto-a-Tara after the battle and moved to Porangahau.