BEIJING — Donald Trump the candidate denounced China's trade policies. But one of his first acts as president handed the country its best chance yet to rival the U.S. as global economic leader.

Trump on Monday officially scrapped the Trans-Pacific Partnership, reversing his predecessor's push toward Asia and dashing the hopes of Pacific Rim member nations trying to resist China's gravitational pull.

The move delighted Beijing, which no longer needs to worry about a U.S.-led deal Chinese officials saw as an attempt to undermine its rise. These leaders now have a rare opportunity to tilt the geopolitical landscape and promote an agenda more aligned with China's goals for global trade.

“If China is required to play that leadership role, then China will assume its responsibilities,” Zhang Jun, head of the Chinese Foreign Ministry's international economic affairs department, told reporters on Monday.

The 12-member TPP, which stretched from Japan to Peru but did not include China, aimed to create a free-trade zone for about 40 percent of the world's economy.

It would have cut tariffs and set rules for trade disputes, the environment and intellectual property. The Obama administration viewed it as key to expanding U.S. influence.

Trump has long criticized international trade agreements and said his executive action would protect American workers from low-wage countries like Vietnam and Malaysia, two members of the accord.

The TPP “came hand in hand with a vision about what the world order looked like,” said Danny Quah, an economics professor at the Lee Kuan Yew School of Public Policy in Singapore. “It had to do with America being in the center writing the rules of game that benefit everyone.”

Nothing revealed the diverging attitudes clearer than two speeches last week — Trump's inaugural address and Chinese President Xi Jinping's keynote at the World Economic Forum in Davos, Switzerland. While Xi advocated free trade, Trump embraced protectionism.

Europe is distracted by its own wave of populism, leaving few major economics to fill the void.

“Without China or America, Asia-Pacific countries would create their own various trade deals, which would be a total mess,” said Wang Huiyao, president of the Center for China and Globalization, a Beijing think tank.

But Xi's China is also one where civil rights lawyers are jailed for speaking out and regulations make it nearly impossible for foreign businesses to compete. Officials on Monday announced a crackdown on virtual private networks that allow Internet users to circumvent the country's censorship system.

Critics fear Beijing will determine new global roles that aren't in the interests of the U.S. or its allies, such as deals without human rights assurance or worker protections.

Failure to move forward on initiatives like the TPP “would create a void that China is all too happy to fill, and one that would leave our closest military allies and partners no choice but to line up behind China,” former U.S. Trade Representative Michael Froman said just before leaving office this month.

The TPP had appeal among leaders from Tokyo to Hanoi because it helped keep China at arm's distance. Japan's parliament ratified the TPP agreement last week. Vietnamese Prime Minister Nguyen Xuan Phuc even this month held out hope that Trump would reconsider his pledge to pull out of the deal.

Analysts considered Vietnam — now one of the world's fastest-growing economies — to be among the TPP's biggest potential winners. Now the Southeast Asian nation has little choice but to turn to its northern neighbor, its largest trading partner with which it also shares a fraught relationship. Territorial disputes in the South China Sea have stoked further tension between the two countries.

“People worry about the vacuum, that there's some space left behind with the new administration that will be filled by China,” said Vu Thanh Tu Anh, director of research at the Fulbright Economics Teaching Program in Ho Chi Minh City.

Vietnam and Malaysia are now looking to a China-backed trade deal with 16 Asia-Pacific states known as the Regional Comprehensive Economic Partnership. Australia's prime minister said Tuesday the country would try to salvage the TPP without the U.S. and that China might be able to join a revamped accord.

China continues to develop a trade path along the ancient Silk Road, an effort to expand and the country also supports a free trade area in the Asia-Pacific.

“If we focus on RCEP we will not face any major loss in the face” of the TPP's collapse, said Datuk Ahmad Maslan, Malaysia's deputy minister of international trade and industry, according to state media.

Such countries, at least for now, have few options.

“If you are an (Asian) economy facing slower growth, where do you go?” said Malcolm Cook, a senior fellow at the ISEAS-Yusof Ishak Institute in Singapore.

Meyers is a special correspondent.