China and the US say they will halt imposing punitive import tariffs, putting a possible trade war "on hold".
The deal came after talks in the US aimed at persuading China to buy $200bn (£148bn) of US goods and services and thereby reduce the trade imbalance.
US Treasury Secretary Steven Mnuchin did not give figures, but said the US would impose tariffs worth $150bn if China did not implement the agreement.
Chinese Vice-Premier Liu He described the deal as a "win-win choice".
He said dialogue was the way to resolve such issues and "treat them calmly" in the future.
How did the prospect of a trade war come so close?
The US has a $335bn annual trade deficit with Beijing.
Before being elected, President Donald Trump had spoken of China "raping" the US, and promised to label it a currency manipulator on his first day in office.
This did not happen, but he ordered a review of the trade imbalance last August. It found a range of "unfair" practices in China, including restrictions on foreign ownership that pressured foreign companies into transferring technology, unfair terms on US companies, Chinese investments in US strategic industries and Chinese cyber-attacks.
Why history drives China's tough trade stance
Why WTO worried about a trade war
In March this year, Mr Trump announced plans to impose tariffs on Chinese imports - mainly steel and aluminium.
Beijing threatened equal retaliation, including tariffs on a number of US imports - among them aircraft, soybeans, cars, pork, wine, fruit and nuts.
Beijing Deals
What China sells to the US
$462.6bn
The value of of goods bought by the US from China in 2016.
18.2% of all China's exports go to the United States
$129bn worth of China-made electrical machinery bought by US
59.2% growth in Chinese services imported by US between 2006 & 2016
$347bn US goods trade deficit with China
CIA Factbook; USTR. All data for 2016.
Getty Images
Is that threat now over?
Two days of talks ended in Washington DC on Friday with a framework agreement.
Mr Mnuchin told Fox News on Sunday that China would buy more US goods "to substantially reduce the trade deficit".
Concrete numbers had been agreed, he said, although he refused to disclose if this meant China was buying $200bn in return for the US threat to be lifted. US Commerce Secretary Wilbur Ross would travel to China soon, he said, to work on details, which would involve industries - not just the two governments.
"We are putting the trade war on hold. Right now we have agreed to put the tariffs on hold while we try to execute the framework" of the agreement, Mr Mnuchin said.
But he warned that failure to implement it would result in the imposition of the threatened US tariffs.
Is China happy, too?
The Chinese vice-premier Mr Liu said his visit to the US had been "positive, pragmatic, constructive and productive".
Image copyrightGETTY IMAGES
He described a "healthy development of China-US economic and trade relations" which would result in enhanced co-operation in areas such as energy, agriculture products, healthcare, high-tech products and finance.
"Such co-operation is a win-win choice as it can promote the high-quality development of the Chinese economy, meet the people's needs, and contribute to the US effort to reduce its trade deficit," he added.
Mr Mnuchin said the new framework agreement included structural changes to Chinese economy to enable fair competition for US companies, but this would take time, China's vice-premier said.
And, perhaps because of that, he said the two countries "should properly handle their differences through dialogue and treat them calmly in the future".
The best way to get news on the go
Download the BBC News App.
Related Topics
China economyChinaUnited StatesGlobal trade
Share this story About sharing
Email
Facebook
Messenger
Twitter
Pinterest
LinkedIn
More on this story
Why history drives China's tough stance on global trade
15 May 2018
Are we on the brink of a US-China trade war?
13 April 2018
WTO: US-China trade war would have 'severe' economic impact
28 March 2018
Business
Abramovich faces UK visa 'delay'
20 May 2018
From the section UK
Full article Abramovich faces UK visa 'delay'
Cambridge Analytica files for bankruptcy
18 May 2018
From the section Technology
Full article Cambridge Analytica files for bankruptcy
Airbnb tax evaders targeted in landmark deal
18 May 2018
From the section Business 77 comments
Full article Airbnb tax evaders targeted in landmark deal
More Videos from the BBC
How to dress a Royal groom
The sanitary pad workers at the royal wedding
The problem of China's huge bike graveyards
Digging a 20-mile tunnel under Suffolk
Youngsters pictured laughing after killing
The kids who nearly stole the show
Recommended by Outbrain
Elsewhere on BBC
BBC News
Man missing in Colombia found dead
BBC.com
Moving Africa
BBC News
Poland stops 'Russian hybrid war groups'
Recommended by Outbrain
You Might Also Like
BBC Travel
Is this the food capital of Asia?
BBC Travel
In India, gambling with bows and arrows
BBC Culture
The lava river in a quiet neighbourhood
Top Stories
US: Punitive China tariffs on hold
No specific numbers are given, but the deal appears to have ended the imminent threat of a trade war.
1 hour ago
Cuba plane company 'had safety worries'
5 hours ago
Arm schoolteachers, Texas official says
21 minutes ago