US President Joe Biden on Monday said the United States would defend Taiwan militarily if Beijing invaded the self-ruled island, warning China was “flirting with danger”.

“That’s the commitment we made,” he said when asked if Washington would intervene militarily against a Chinese attempt to forcibly take control of Taiwan, which Beijing considers a renegade province to be unified with the mainland.

Also read: ‘China has changed’: Australia’s new PM Anthony Albanese on ‘difficult’ ties

“We agreed with the One China policy, we signed on to it… but the idea that (Taiwan) can be taken by force is just not appropriate.

“It will dislocate the entire region and be another action similar to what happened in Ukraine.”

Also read: Ahead of Quad meeting, Australia swears in new Labor Party leader as Prime Minister

With this strongest comments to date on the issue, the US President directly linked the outcome of Western attempts to help Ukraine repel the Russian invasion with lessons likely to be learned in Beijing regarding Taiwan.

It’s “important that Putin pay a price for his barbarism in Ukraine”, Biden said. “Russia has to pay a long-term price.”

Also read: US to continue engaging with India over Ukraine: White House ahead of Quad Summit

The US President further said that this is “not just about Ukraine” because China is watching to see if Western pressure on Russia slacks off.

“What signal does that send to China about the cost of… attempting to take Taiwan by force?” he asked.

Also read: Biden to visit Japan in May for QUAD summit, huddle with Indian PM Modi

Biden said China does not have “jurisdiction to take Taiwan by force”.

Signalling that he expects an invasion “will not happen”, Biden said however that this “depends… how strong the world makes clear” there would be a price for an invasion.