"Sea and wind conditions were quite horrendous," said Sergeant Greg Lexmond.
He co-ordinated the rescue effort.
Ministry for Primary Industries fisheries staff were at Anaura Bay at the time of the drama on a surveillance operation.
"They witnessed what was happening and raised the alarm," Sgt Lexmond said.
The fisheries officers said both men were diving, one with scuba gear and the other snorkelling.
The wind was coming from the south initially, then the direction changed to the south-east.
"That wind change caught them out," said fisheries officer Grant Dickson.
One of the men got into the dinghy and tried unsuccessfully to start it.
"He was being blown along the coast and away from his diving companion, so he tried to row back to him but was getting nowhere," Mr Dickson said.
Sergeant Lexmond said from the initial reports it was obvious that lives were at risk, so it was decided to mobilise all necessary resources.
The rescue helicopters were stood down when word came in that the two men had made their way safely to shore.
The two fisheries officers had borrowed a small runabout after they had raised the alarm and tried to reach the man in the dinghy.
"It was extremely choppy.
"We got about halfway over and started taking on too much water.
"We decided to turn back before we got into trouble ourselves," Mr Dickson said.
The man in the dinghy was blown 1.5km along the coast.
"He just managed to get ashore on a sand spit.
"He was really lucky that he ended up where he ended up, otherwise the dinghy would have hit rocks, then he would have gone out to sea," Mr Dickson said.
Sgt Lexmond said he was not impressed with the men's actions.
"People need to take into account the weather conditions and forecast, and be prepared with the right safety equipment when they do venture out.
"If the wind had been blowing offshore, who knows what the outcome could have been," he said.
The men should have made sure they had all the right safety gear on board, he said.
"No anchor, no flares, no lifejackets."
- The Gisborne Herald