Jerusalem - Philippine President Rodrigo Duterte, who once compared himself to Hitler, paid a solemn visit to Israel’s national Holocaust memorial on Monday, branding the Nazi leader “insane” as he lamented the Nazi genocide of an estimated 6 million Jews.

The comments marked a dramatic turnaround for Duterte, who just two years ago had compared his anti-drug campaign to the Holocaust and said he would be “happy to slaughter” 3 million addicts. He later apologized.

Duterte, known for his profane outbursts and accused of committing widespread human rights abuses, spoke quietly and respectfully during his stop at the Yad Vashem memorial. He said the Holocaust should never be repeated and that “despots” have no place in the modern world.

“I could not imagine a country obeying an insane leader, and I could not ever fathom the spectacle of the human being going into a killing spree, murdering old men, women and children. I hope this will not happen again,” he said.

“There is always a lesson to learn: that despots and leaders who show insanity, they should be disposed of at the first instance,” he said.

Duterte, the first Philippine president to visit Israel, has received a warm welcome from the government, despite criticism that it is embracing a leader accused of rights abuses in his deadly crackdown on drug dealers. The agenda reportedly also is expected to include an arms sale to the Philippines.

Duterte and Israeli Prime Minister Benjamin Netanyahu oversaw the signing of three agreements in trade, science and care-giving. Netanyahu highlighted the countries’ long friendship, how the Philippines took in Jewish refugees after World War II and was the only Asian nation to vote for Israel’s establishment. He noted how in recent years Filipino health aides have assisted the elderly in Israel, including Netanyahu’s own father.

“We remember our friends, and that friendship has blossomed over the years and especially over the last few years,” Netanyahu told Duterte. “There has been a remarkable phenomenon in Israel where thousands and thousands of families have taken heart from the support given by Filipino caretakers for the elderly.”

Duterte thanked Israel for hosting some 28,000 Filipino workers and for assisting his country in its times of need.

“We share the same passion for peace, we share the same passion for human beings but also we share the same passion of not allowing our country to be destroyed by those who have the corrupt ideology, who know nothing but to kill and destroy. And in this sense Israel can expect any help that the Philippines can extend to your country,” he said at a joint appearance with Netanyahu.

The two countries established diplomatic relations in 1957. Netanyahu has worked to cultivate allies in Asia, Africa and Latin America, where many countries have historically shunned Israel over its treatment of the Palestinians.

But Netanyahu has come under fire for embracing Duterte, whose forces are accused of killing thousands in anti-drug raids since he took office in 2016. Duterte drew outrage that year when he compared his anti-drug campaign to the Holocaust, and himself to Hitler, before being forced to apologize.

More recently, he pressured a woman into kissing him on stage and said there would be many rape cases in a Philippine city “if there were many beautiful women.”

Official Philippine police tallies place the number of suspects killed in police-led anti-drug raids at more than 4,500 since Duterte took office. International human rights watchdogs have cited far higher death tolls. Duterte, a 73-year-old former government prosecutor, denies condoning extrajudicial killings but has openly threatened drug dealers with death.

His visit is also to include a stop at a monument commemorating the Philippines’ rescue of Jews during the Holocaust.