The President of the Philippines has said he and Donald Trump are “alike” as they both love to swear.

Rodrigo Duterte congratulated Donald Trump on his election victory during a visit to Malaysia on Wednesday.

“Long live Mr Trump! We both curse at the slightest reason. We are alike,” he said.

"We both make curses. Even with trivial matters we curse."

Mr Duterte, who is prone to sudden outbursts and profanities, said he wishes to stop quarrelling with the United States.

He previously told President Barack Obama to “go to hell” and has repeatedly hit out at Washington in recent months, threatening to cut defence pacts and end military joint drills.

Rodrigo Duterte says he 'doesn't give a s*** about human rights' as 3,500 killed in war on drugs

The Filipino President has also criticised US officials for expressing concern about his brutal crackdown on illegal drug sellers and users.

But today he said: "I don't want to quarrel anymore, because Trump has won."

Mr Duterte won a May election by a huge margin and is often compared with President-elect Trump, having himself been the alternative candidate from outside of national politics.

He campaigned on a populist, anti-establishment platform and struck a chord among ordinary Filipinos with his promises to fix what he called a broken country.

When elected, he pledged to bring back the death penalty and shoot to kill powers to the Philippines.

One of the biggest surprises of Mr Duterte's presidency so far has been his hostility toward the United States, shown during near-daily eruptions of anger over its concerns about human rights abuses during his deadly war on drugs.

He told Filipinos how angry he had been at Washington, saying it had threatened to cut off aid and had treated the Philippines like a dog tied to a post.

“They talk as if we are still the colonies,” he said.

The most controversial quotes from Rodrigo Duterte Show all 9 1 /9 The most controversial quotes from Rodrigo Duterte The most controversial quotes from Rodrigo Duterte On killing drug addicts “These sons of whores are destroying our children. I warn you, don’t go into that, even if you’re a policeman, because I will really kill you. If you know of any addicts, go ahead and kill them yourself as getting their parents to do it would be too painful” The most controversial quotes from Rodrigo Duterte Message to China “I will go there on my own with a Jet Ski, bringing along with me a [Phillipino] flag and a pole, and once I disembark, I will plant the flag on the runway and tell the Chinese authorities, ‘Kill me’ ” AP The most controversial quotes from Rodrigo Duterte Christmas message to law-breakers “If you do not want to stop, and just continue committing crimes, then this would be your last Merry Christmas” AP The most controversial quotes from Rodrigo Duterte On sex life “I was separated from my wife. I’m not impotent. What am I supposed to do? Let this hang forever? When I take Viagra, it stands up” AFP/Getty Images The most controversial quotes from Rodrigo Duterte On the drugs trade “None of my children are into illegal drugs. But my order is, even if it is a member of my family, ‘kill him'" AP The most controversial quotes from Rodrigo Duterte Insulting the Pope “We were affected by the traffic. It took us five hours. I asked why, they said it was closed. I asked who is coming. They answered, the pope. I wanted to call him: ‘Pope, son of a wh**e, go home. Do not visit us again’” AFP/Getty Images The most controversial quotes from Rodrigo Duterte Joke about rape “I saw her face and I thought, 'What a pity... they raped her, they all lined up. I was mad she was raped but she was so beautiful. I thought, the mayor should have been first” AFP/Getty The most controversial quotes from Rodrigo Duterte Insulting Barack Obama "Mr Obama should be respectful and refrain from throwing questions at me about the killings, or son of a bitch, I will swear at you in that forum" REUTERS The most controversial quotes from Rodrigo Duterte On Abu Sayyaf Islamic militants "If I have to face them, you know I can eat humans. I will really open up your body. Just give me vinegar and salt, and I will eat you. If you annoy me to the fullest... I will eat you alive. Raw" EPA

Last month President-elect Trump told Reuters the Philippines was a very important strategic location and that Mr Duterte's comments about removing foreign troops showed “a lack of respect for our country.”

Teddy Locsin Jr, Mr Duterte's incoming ambassador to the United Nations, said there were a few parallels between Trump, who stunned the world by defeating rival Hillary Clinton in Tuesday's presidential election, and Mr Duterte.

“I remember Trump in the middle of one of his statements, he said 'I will not talk like this after I become president',” Mr Locsin said on TV. “I remember someone who also said the same thing.”