A US warship has sailed near the disputed Scarborough Shoal claimed by China in the South China Sea, a move likely to anger Beijing at a time of tense ties between the world’s two biggest economies.

The destroyer USS Preble carried out the operation on Sunday, a US military spokesman said. The busy waterway is one of a growing number of flashpoints in the US-China relationship, which also include a trade war, the blacklisting of tech company Huawei US sanctions and Taiwan.

“Preble sailed within 12 nautical miles of Scarborough Reef in order to challenge excessive maritime claims and preserve access to the waterways as governed by international law,” said Commander Clay Doss, a spokesman for the Seventh Fleet.

It was the second such US military operation in the South China Sea in the past month. On Wednesday, the chief of the US Navy said its freedom of navigation movements in the disputed South China Sea drew more attention than they deserved.

The US military has a longstanding position that its operations are carried out throughout the world, including areas claimed by allies, and they are separate from political considerations.

The operation was the latest attempt to counter what Washington sees as Beijing’s efforts to limit freedom of navigation in the strategic waters, where Chinese, Japanese and some south-east Asian navies operate.

China claims almost all of the strategic South China Sea and frequently lambasts the US and its allies over naval operations near Chinese-occupied islands.

Brunei, Indonesia, Malaysia, the Philippines, Taiwan and Vietnam have competing claims in the region.

China and the US have repeatedly traded barbs in the past over what Washington says is Beijing’s militarisation of the South China Sea by building military installations on artificial islands and reefs.

China defends its construction as necessary for self-defence and says the US is responsible for ratcheting up tension in the region by sending warships and military planes close to islands Beijing claims. Last month, China’s navy chief said freedom of navigation should not be used to infringe upon the rights of other nations.