President Donald Trump said he would pull out of the World Trade Organization if it doesn’t treat the U.S. better, targeting a cornerstone of the international trading system.

“If they don’t shape up, I would withdraw from the WTO,” Trump said Thursday in an Oval Office interview with Bloomberg News. Trump said the agreement establishing the body “was the single worst trade deal ever made.”

A U.S. withdrawal from the WTO potentially would be far more significant for the global economy than even Trump’s growing trade war with China, undermining the post-World War II system that the U.S. helped build.

Trump said last month that the U.S. is at a big disadvantage from being treated “very badly” by the WTO for many years and that the Geneva-based body needs to “change their ways.”

U.S. Trade Representative Robert Lighthizer has said allowing China into the WTO in 2001 was a mistake. He has long called for the U.S. to take a more aggressive approach to the WTO, arguing that it was incapable of dealing with a non-market economy such as China.

Lighthizer has accused the WTO dispute-settlement system of interfering with U.S. sovereignty, particularly on anti-dumping cases. The U.S. has been blocking the appointment of judges to the WTO’s appeals body, raising the possibility that it could cease to function in the coming years.

In the Oval Office interview, Trump said at the WTO “we rarely won a lawsuit except for last year.”

“In the last year, we’re starting to win a lot,” he added. “You know why? Because they know if we don’t, I’m out of there.”

Countries that bring complaints to the WTO tend to prevail and defendants in trade disputes lose.

The U.S. has won more than 90 per cent of the cases that it has initiated and also brought more cases than any other WTO member, according to the Cato Institute, a Washington policy group that favors more open international trade. However, the U.S. has lost almost 90 per cent of the cases brought against it at the WTO.

The Trump administration has taken his complaints a step further by arguing that the WTO’s dispute settlement system is broken and in need of a major overhaul.

The EU has been leading an effort to propose reforms to try and defuse the conflict. Officials from the EU and Japan visited Washington last week to discuss potential changes as well as joint efforts to take on China at the WTO.

Since World War II, successive U.S. presidents have led efforts to establish and strengthen global trading rules, arguing that they would bring stability to the world economy.

The WTO was created in 1994 as part of a U.S.-led effort by major economies to create a forum for resolving trade disputes.