A Whangarei man fought off an attacking dog by striking it with a hammer as he lay on the ground with the dog at his throat.
However, the blows had little effect and when the 22-year-old managed to get to his feet he fled inside a house to escape the attacking canine.
Whangarei police Acting Sergeant Aaron Furze said officers were called to a house on Meadow Park Ave in Tikipunga about 6pm on Wednesday.
The man had gone to visit a friend at the house. He was in a garage at the house when the dog came up to him and nervously started to sniff him.
It was when he went to pat the pitbull Shar Pei cross it bit him.
Mr Furze said the dog got the man on the arm and dragged him to the ground where the dog then bit him on his neck and leg.
He managed to grab a hammer and hit the dog a couple of times. He got to his feet but was bitten again before fleeing inside the house.
“If that had been an attack on a child the outcome could have been much worse,” Mr Furze said. “They realised it was a dangerous dog and they made the decision to have it put down. I praise them for that.”