BEIJING — A Chinese destroyer came aggressively close to a US Navy ship in the South China Sea, forcing it to maneuver to prevent a collision, the US Pacific Fleet said Tuesday, describing an encounter that could worsen tensions between the nations.

The Chinese warship approached the USS Decatur in an “unsafe and unprofessional maneuver” on Sunday near Gaven Reefs in the South China Sea, said US Pacific Fleet spokesman Lt. Cmdr. Tim Gorman.

The Chinese destroyer “conducted a series of increasingly aggressive maneuvers accompanied by warnings for Decatur to depart the area,” Gorman said in an emailed statement.

It approached within 45 yards of the Decatur’s bow, forcing it to maneuver, Gorman said.

China claims most of the strategic waterway and has built islands on reefs and equipped them with military facilities such as airstrips, radar domes and missile systems.

The USS DecaturAP

The Chinese defense ministry said Tuesday it opposes the US warship’s entry into the waters “around China’s islands and reefs.” It confirmed that the Luoyang, a Chinese missile destroyer, was immediately deployed to identify the US warship and drive it away.

The Chinese foreign ministry said it strongly urged the US to stop its “provocative” actions.

Relations between the US and China have deteriorated over an escalating trade dispute. But ties have worsened in recent weeks with a US decision to issue economic sanctions over the purchase of Russian fighter jets and surface-to-air missile equipment.

Beijing said the US had no right to interfere in Chinese military cooperation with Russia. In response to the sanctions, China summoned the American ambassador and defense attache to deliver a protest, and recalled its navy commander from a US trip.

US Defense Secretary Jim Mattis has since dropped plans to visit China in October for talks.