Washington (CNN) The US Navy sailed a warship through the Taiwan Strait Wednesday, a move that came on the same day Beijing warned that it would not rule out using force against self-governed Taiwan to block any move toward formal independence.

The "USS Antietam conducted a routine Taiwan Strait transit July 24-25 (local time) in accordance with international law," Cdr. Clay Doss, a spokesman for the US Navy's Seventh Fleet, told CNN in a statement

"The ships' transit through the Taiwan Strait demonstrates the US commitment to a free and open Indo-Pacific," he added, saying "The US Navy will continue to fly, sail and operate anywhere international law allows."

The US routinely sails through the Taiwan Strait, last doing so in May, but Chinese military forces view the strategic waterway separating China from Taiwan as a priority area and often shadow US vessels that sail through the area.

In a national defense white paper released Wednesday, China took aim at what it considers pro-independence or separatist forces in the far western region of Xinjiang, Tibet and Taiwan, claiming they were a threat to national security and social stability.

Read More