The engines of a ship carrying a cargo of bananas into Auckland this morning failed as the vessel entered the Rangitoto Channel.
Engines on the 144m Triton Reefer gave out about 6am and its pilot weighed anchors to await help.
Ports of Auckland sent two tugs to its aid.
"It lost power for some reason. The pilot went in to textbook procedure, took it to safety, dropped both anchors, and called the tugs in," a ports spokeswoman said.
"The tugs made fast and the engineers on board the ship rectified the problem and started it up again."