A small number of Axis surface raiders and submarines operated in New Zealand Waters during World War II.
The following German surface raiders operated in New Zealand waters:
The Orion and Komet sank four ships in New Zealand waters during these operations.
Imperial Japanese Navy submarines operated in New Zealand waters in 1942 and 1943:
Neither I-21 nor I-25 attacked any ships during their brief periods in New Zealand waters.
The German submarine U-862 sailed down the east coast of New Zealand in January 1945. U-862—under the command of Korvettenkapitän Heinrich Timm—entered New Zealand waters on 1 January 1945 after operating off Australia. The boat rounded the tip of the North Island on 7 January and proceeded down the east coast. She encountered a merchant ship off Cape Brett on 10 January but was not able to intercept it. The U-boat continued south and failed to reach firing position on another merchant ship off East Cape on 13 January.
On 15 January, Timm took his submarine very close to Gisborne in search of viable targets. While the submarine was not detected, Timm did not find any worthwhile ships to attack. Timm also sailed close to the shore of Napier on 16 January and attempted to torpedo a small merchant ship off the city. This attack was not successful, with the torpedo missing its target. Timm believed that U-862 had been sighted during this attack and left the area. This belief was not correct, however, and the New Zealand government remained unaware of the submarine's presence.
Shortly after the attack off Napier, U-862 received orders to return to her home base at Batavia. Timm immediately ceased his patrol and proceeded along the east coast of the South Island. U-862 rounded Stewart Island/Rakiura on 21 January and the submarine left New Zealand waters shortly thereafter. Claims that members of the submarine's crew landed in New Zealand are not correct, and this story appears to have been started by Timm as a joke.