President Donald Trump on Tuesday appeared to undermine years of U.S. sanctions on Iran, giving its biggest customer China the green light to carry on buying its oil as he seeks to bolster a ceasefire with Israel.

The announcement on social media — which surprised both oil traders and officials in his own government — could undermine the central element of Washington’s Iran policy under multiple administrations, which have sought to cut the regime’s main source of revenue by making its top export off limits.

"China can now continue to purchase oil from Iran,” the president said on Truth Social, amid a flurry of posts demanding Israel and Iran cease hostilities.