China's foreign ministry has expressed its "resolute opposition" after US President Donald Trump signed legislation that encourages the US to send senior officials to Taiwan to meet Taiwanese counterparts and vice versa.
The bill, which is non-binding, would have gone into effect on Saturday morning, even if Trump had not signed it.
The move adds to strains between the two countries over trade, as Trump has enacted tariffs and called for China to reduce its huge trade imbalance with the US, even while Washington has leaned on Beijing to help resolve tensions with North Korea.
In a statement, China's foreign ministry said it had lodged "stern representations" with the US, saying the law sent a "seriously wrong signal" to the forces of Taiwan independence.
"We urge the US side to correct its mistake, stop official exchanges between US and Taiwan officials and substantively raising relations, and prudently and appropriately handle the Taiwan issue to avoid causing serious harm to Sino-US ties and peace and stability in the Taiwan Strait region."
China considers self-ruled and democratic Taiwan to be a wayward province ineligible for state-to-state relations.
China's hostility towards Taiwan has risen since the election of President Tsai Ing-wen, of the pro-independence Democratic Progressive Party, in 2016.
It suspects Tsai wants to push for formal independence, which would cross a red line for Communist Party leaders in Beijing, though Tsai has said she wants to maintain the status quo and is committed to ensuring peace.
Taiwan's government has welcomed the new US legislation, saying it looks forward to continuing to deepen its relationship with Washington.
Taiwan's presidential office said in a statement earlier on Saturday that the US was Taiwan's most important ally and thanked the country for its steadfast support.
The US does not have formal ties with Taiwan but is required by law to help it with self-defence and is the island's primary source of weapons.