The U.S. dedicated a new de facto embassy in Taiwan on Tuesday in what officials described as an indicator of robust ties with the self-governing island democracy that China claims as its own territory.

The ceremony, which drew an angry response from Beijing, is the latest sign of how the administration of U.S. President Donald Trump has strengthened relations with Taipei amid disputes with China and rising tensions in the highly militarized Taiwan Strait.

The recently completed American Institute in Taiwan office in a suburb of the capital Taipei will house U.S. representatives and serves American interests in the absence of formal diplomatic ties.

The U.S. switched diplomatic recognition to Beijing in 1979 but maintains close economic, political and security ties with Taiwan.

"We should all be proud of this milestone, which is a symbol of the close cooperation and enduring friendship between the United States and Taiwan," AIT Director Kin W. Moy, the U.S. ambassador in all but name, said at the dedication ceremony.

Joining Moy was U.S. Assistant Secretary of State for Educational and Cultural Affairs Marie Royce, who called the new office "a symbol of the strength and vibrancy of the U.S.-Taiwan partnership in the 21st century."

"Our friendship brings the best out of both our peoples," Royce said.

Among other officials attending the ceremony was Taiwan's President Tsai Ing-wen, whose independence-leaning administration Beijing has sought to isolate diplomatically and threatens with invasion.

Tsai wrote in a tweet that the dedication of the office compound was an opportunity to "rededicate ourselves to our shared commitment that as free & open democracies, Taiwan & US have an obligation to work w/one another to defend our shared values.

"I look forward 2 an even brighter chapter in our enduring friendship!" Tsai wrote.

The sides split amid civil war in 1949, and Beijing insists they eventually unify under its rule. Tsai, who leads the ruling Democratic Progressive Party, has refused Beijing's demand that she recognize Taiwan as a part of China, leading to a prolonged freeze in relations that had been gradually warming under her predecessor, Ma Ying-jeou of the pro-unification Nationalist Party.

Fewer recognizing sovereignty

China bars Taiwan from membership in the United Nations and many other international organizations and has been luring away the island's remaining diplomatic allies, leaving it with just 18. Beijing has cut all contacts with Tsai's government, reduced the number of Chinese tourists visiting the island and increased its military threat with war games and air patrols around the island and by sailing its aircraft carrier through the Taiwan Strait.

Taiwan's military held an exercise last week that simulated a Chinese airborne assault on a major air base.

Chinese Foreign Ministry spokesperson Geng Shuang said Tuesday that U.S. officials who attended activities in Taiwan under "whatever excuse" were violating diplomatic accords and meddling in China's internal affairs.

"We urge the U.S. to honour its words on the Taiwan issue, and redress its wrongdoing so as to avoid doing harm to China-US ties and peace and stability in cross-strait relations," Geng said.

Taiwan's relations with the United States have grown closer amid Washington's own struggles with Beijing.

In March, Trump signed the Taiwan Travel Act that encourages high-level visits between the two sides. A month later, the Department of Defence agreed to give U.S. contractors marketing licences for diesel-electric submarine technology sought by Taiwan's armed forces.

And last month, the White House accused China of "Orwellian nonsense" for demanding that international airlines refer to Taiwan as a part of China on their websites.

"Taiwan-U.S. relations appear to be more practical and closer than before, so Taiwanese people will have more expectations," ruling party legislator Lee Chun-yi said. "China's pressure on Taiwan is inciting a backlash from the public here."

Still, the United States has not sold F-35 fighter jets, as requested by Taipei, offered actual submarines or docked a naval vessel in Taiwan despite talk in Washington.

"I think Taiwan-U.S. relations have improved in appearance, not in substance," said Chen I-hsin, an emeritus professor of diplomacy in Taiwan.

Taiwan also risks being sidelined in Washington if Trump feels satisfied that China has addressed its massive trade surplus with the U.S., said retired strategic studies professor Lin Chong-pin.

"It's been said before that Taiwan is being used as a bargaining chip, and so far we cannot rule that out," Lin said.

Washington's decision to "slightly upgrade relations" is mainly due to its disillusionment with China and the ascension of a more hawkish view toward China in the Trump administration, said Denny Roy, a fellow at the East-West Center think-tank in Honolulu.

"Hence a few moves to loosen the previous self-limitations by Washington in its relationship with Taiwan," said Roy.