(CNN)Within a span of a few months, the Philippines has transformed from one of China's most ardent critics into one of its potential allies.

"I'm going to China to make friends with them and also with Russia," Rodrigo Duterte, the Philippines' firebrand leader, claimed recently.

"I am ready to not really break ties [with America] but we will open alliances with China and . . . Medvedev [Russia]."

Since his first day in office, Duterte has consistently touted his commitment to forging a more independent foreign policy, which, to him, means less dependence on America.

Naturally, many are beginning to ask whether Duterte, a self-described 'socialist', will revamp the Philippines' foreign policy by shifting alliances towards China.

Read More

First state visit to China

Currently, the Philippines and China are negotiating a 25-year bilateral military agreement which allows Manila to purchase Chinese weapons. And unlike any of his predecessors, Duterte's first state visit will be to China.

Without a doubt, China will be rolling out the red carpet, charming its Filipino guest with maximum hospitality and offering assistance and good will.

During his stay in Beijing, Duterte is expected to discuss various measures to normalize bilateral relations, expand economic cooperation and explore a potential modus vivendi in the South China Sea.

Photos:Rodrigo Duterte has said some outrageous things.

Speaking at a business forum in Manila in December 2016, Duterte admitted killing suspected criminals during his time as mayor of Davao City.

Hide Caption

1 of 17

Photos:Rodrigo Duterte has said some outrageous things.

The day after Trump won the US presidential election in November 2016, Duterte said he and Trump share some traits.

Hide Caption

2 of 17

Photos:Rodrigo Duterte has said some outrageous things.

After reports emerged of a potentially blocked arms sale, Duterte told CNN Philippines in November 2016 that he would turn to Russia for weapons.

Hide Caption

3 of 17

Photos:Rodrigo Duterte has said some outrageous things.

During a state visit to China in October 2016, Duterte announced his economic and military 'separation' from the US.

Hide Caption

4 of 17

Photos:Rodrigo Duterte has said some outrageous things.

In October 2016 Duterte expressed growing hostility with the US president.

Hide Caption

5 of 17

Photos:Rodrigo Duterte has said some outrageous things.

After US president Barack Obama said he would raise extrajudicial killings in a meeting with Duterte, the Philippines President responded angrily on September 5, first in English then in Tagalog. As a result, Obama canceled the meeting.

Hide Caption

6 of 17

Photos:Rodrigo Duterte has said some outrageous things.

As he addressed troops at the country's Armed Forces Central Command Headquarters on August 5, Duterte recounted U.S. Secretary of State John Kerry's visit to the country, saying in Tagalog that he was feuding with U.S. Ambassador to the Philippines Philip Goldberg.

Hide Caption

7 of 17

Photos:Rodrigo Duterte has said some outrageous things.

The Philippines president-elect effectively said he supported vigilantism against drug dealers and criminals in a nationally televised speech in June 2016.

Hide Caption

8 of 17

Photos:Rodrigo Duterte has said some outrageous things.

Foreign diplomats weighing in on Rodrigo Duterte's controversial remarks did not sit well with the then-mayor.

Hide Caption

9 of 17

Photos:Rodrigo Duterte has said some outrageous things.

Duterte apologized to the Pope after cursing him for the traffic he caused during a 2015 Papal visit to the Philippines.

Hide Caption

10 of 17

Photos:Rodrigo Duterte has said some outrageous things.

In September 2016, Duterte likened himself to the Nazi leader and announced that he wants to kill millions of drug addicts.

Hide Caption

11 of 17

Photos:Rodrigo Duterte has said some outrageous things.

Speaking at a press conference to unveil his new cabinet on May 31 2016, Rodrigo Duterte said journalists killed on the job in the Philippines were often corrupt.

Hide Caption

12 of 17

Photos:Rodrigo Duterte has said some outrageous things.

During the third and last presidential debate, Duterte had said that he would plant a Philippine flag in disputed territories should China refuse to recognize a favorable ruling for the Philippines.

Hide Caption

13 of 17

Photos:Rodrigo Duterte has said some outrageous things.

Duterte made international headlines in April 2016 with his inflammatory comments on the 1989 rape and murder of an Australian missionary that took place in Davao City.

Hide Caption

14 of 17

Photos:Rodrigo Duterte has said some outrageous things.

He also lashed out at the womens' group that filed a complaint against him before the Commission on Human Rights (CHR).

Hide Caption

15 of 17

Photos:Rodrigo Duterte has said some outrageous things.

At a CNN Philippines Townhall event in February 2016, Duterte, admitted that he had three girlfriends and a common-law wife. His marriage to Elizabeth Zimmerman was annulled due to his womanizing, but he denied this meant he objectified women.

Hide Caption

16 of 17

Photos:Rodrigo Duterte has said some outrageous things.

Although he later denied the accusations, the former Davao City mayor admitted his links to the alleged Davao death squad in a May 2015 broadcast of his local television talk show.

Hide Caption

17 of 17

Threats against the West

While Duterte is committed to improving ties with China, it is unlikely that he will risk alienating the Philippine security establishment and broader populace by severing security ties with the US altogether.

As he recently clarified, "We need not really... break or abrogate existing treaties [with America] because they say that it could provide us with [security] umbrella."

However, over the past few weeks, Duterte has scrapped joint maritime patrols and military exercises with the United States in the South China Sea, a crucial aspect of growing military resistance against Chinese assertiveness in the area, and threatened to expel US Special Forces from the southern island of Mindanao, where they have been aiding Philippine counter-terror operations.

Duterte's tirades against the West, particularly America, are both a reflection of personal conviction as well as political expediency.

On one hand, Duterte is genuinely critical of what he views as Western imperialism, embodied by American (real and imagined) interference in the domestic affairs of allies and developing countries the world over.

But the timing of his threats against the West could be explained by several factors.

JUST WATCHED

This man compares himself to Hitler

MUST WATCH

This man compares himself to Hitler01:21

Expletives against Obama

First of all, Duterte has been ticked off by America's increasingly open criticism of his signature "war on drugs" policy. No less than US President Barack Obama has openly confronted the Filipino leader on the issue.

"We're not going to back off on our position that if we're working with a country... it is important from our perspective to make sure that we do it the right way," the US leader warned Duterte.

When the United Nations and the European Parliament joined the fray, criticizing the Filipino leader's domestic policies, they were also met by Duterte's invective-laced tirades.

Then there is his upcoming trip to China, Duterte's first state visit. By openly threatening a downgrade in military cooperation with the West, the Filipino leader is signaling his independence and good will towards Beijing, which has been irked by growing American military footprint in the South China Sea in recent years.

As part of a grand bargain, the Duterte administration may actually not only suspend joint patrols and military exercises with America in exchange for Chinese concessions in the South China Sea, ranging from a joint fisheries agreement in the bitterly-disputed Scarborough Shoal to a broader non-aggression pact in contested waters.

A step too far?

Since the beginning of his presidential campaign, Duterte has promised radical change in the country's domestic and foreign policy. But far from alienating the Filipino electorate, he still remains to be widely popular leader.

In many ways, Duterte, a former political outsider, has amassed significant political capital in a very short span of time.

This gives him tremendous wiggle room to renegotiate the parameters of Philippine politics, including its foreign policy orientation.

Severing military ties with America, however, would be a step too far.

The Philippine military and the broader security establishment is largely entwined with and dependent on American intelligence, financing, logistical support, and training.

And surveys consistently show that America enjoys astronomically high approval ratings (92%) among Filipinos, who are very critical of China due to the disputes in the South China Sea.

No wonder then, luminaries including former President Fidel Ramos, among Duterte's most trusted advisers, has openly criticized the Filipino leader's constant threat to downgrade military ties with America.

More likely, Duterte will simply tinker with certain aspects of Philippine-U.S. military cooperation as part of his efforts to rebuild frayed ties with China.