Rudy Giuliani said North Korean despot Kim Jong Un begged “on his hands and knees” for a summit after President Trump canceled it last month, a report on Wednesday said.

Giuliani, the president’s lawyer, said Trump pulled the plug on the meeting with Kim on May 24 because top North Korean officials insulted top administration officials.

“They also said they were going to go to nuclear war with us, they were going to defeat us in a nuclear war,” Giuliani said​ during an investment conference in Tel Aviv, the Wall Street Journal reported​. “We said we’re not going to have a summit under those circumstances.”

​After Trump sent the letter announcing that he was pulling out of the talks, the former New York City mayor said Kim scrambled to get them back on track.

“​Well, Kim Jong Un got back on his hands and knees and begged for it, which is exactly the position you want to put him in​,​”​ he said.​

​Giuliani said Trump now has the upper hand in the talks scheduled for June 12 in Singapore.

He also suggested that Trump use the same tactic when he negotiates with the Palestinian Authority in future peace talks in the Middle East.

“That’s what needs to happen with the Palestinian Authority. They have to be seeking peace. You’ve got to change the dynamic and put the pressure on them,” Giuliani said.

But the Palestinians said Trump is “no longer an honest mediator” in the process after he announced the US would recognize Jerusalem as the capital of Israel.

Russian President Vladimir Putin applauded Trump for agreeing to the Kim meeting.

“I still hope that this meeting — a very brave and mature decision US President Donald Trump has made, to have direct contacts with North Korean leader Kim Jong-un — will take place, and we all expect a positive outcome,” Putin told the China Media Group in an interview published on the Kremlin’s Web site.

The White House on Tuesday confirmed that Trump and Kim will meet at Singapore’s luxurious Capella Hotel on Sentosa Island, but hasn’t released an official schedule.

Trump previously hosted Japanese Prime Minister Shinzo Abe and Chinese President Xi Jinping at Mar-a-Lago.