China warned the US that it was ready to take "firm countermeasures" after President Donald Trump signed a law supporting pro-democracy protesters.
"The nature of this is extremely abominable, and harbours absolutely sinister intentions," the Chinese foreign ministry said in a statement.
It added that the legislation sent the wrong signal to demonstrators and "clearly interfered" with the city's internal affairs.
On Wednesday, Trump signed into law congressional legislation that supported the protesters despite objections from Beijing.
The new legislation will require the US to annually confirm that Hong Kong's special freedoms are being maintained by China.
Anti-government protests have roiled the city for six months, with more than 5,800 people arrested for violent outbreaks.


Venezuela quake death toll nears 3,000 as rescue effort winds down
Eight injured in New York shooting
Trump appears on National Mall for July 4 speech after storm-related delay
Qatar says all maritime activities will resume immediately
St. Petersburg region port, oil terminal hit in Ukrainian drone attack
Thousands protest in Germany as far-right AfD sets sights on power
Trump extols America, rails at communism in US 250th celebration
Zelenskyy denies Russian capture of key eastern city Kostiantynivka
