On Sunday, a US military warship sailed near Scarborough Shoal claimed by China in the South China Sea.

The US military said it sent two Navy ships through the Taiwan Strait on Wednesday, a move likely to anger Beijing at a time of tense relations between the world's two biggest economies.

Taiwan is one of a growing number of flashpoints in the US-China relationship, which also include a trade war, US sanctions and China's increasingly muscular military posture in the South China Sea, where the United States also conducts freedom-of-navigation patrols. The voyage will be viewed by self-ruled Taiwan as a sign of support from the Trump administration amid growing friction between Taipei and Beijing.

The transit was carried out by the destroyer Preble and the Navy oil tanker Walter S Diehl, a US

military spokesman told Reuters. "The ships' transit through the Taiwan Strait demonstrates the US commitment to a free and open Indo-Pacific," Commander Clay Doss, a spokesman for the US Navy's Seventh Fleet, said in a statement.

Commander Doss said all interactions were safe and professional. The United States has no formal ties with Taiwan but is bound by law to help provide the island with the means to defend itself and is its main source of arms.

The Pentagon says Washington has sold Taipei more than $15 billion in weaponry since 2010.China has been ramping up pressure to assert its sovereignty over the island, which it considers a wayward province of "one China" and sacred Chinese territory.

Beijing said a recent Taiwan Strait passage by a French warship, first reported by Reuters, was illegal. China has repeatedly sent military aircraft and ships to circle Taiwan on exercises in the past few years and worked to isolate it internationally, whittling down its few remaining diplomatic allies.

The US Defense Intelligence Agency released a report earlier this year describing Taiwan as the "primary driver" for China's military modernization, which it said had made major advances in recent years.

On Sunday, a US military warship sailed near the disputed Scarborough Shoal claimed by China in the South China Sea, angering Beijing.