Canadian Prime Minister Justin Trudeau has closed the G7 summit by stating he "won't be pushed around" by Donald Trump on trade.
At a news conference to close the summit of world leaders in Canada, Mr Trudeau said the people of his country would see the US president's line on trade as "insulting" after a long history of co-operation between the countries.
Mr Trump earlier warned his counterparts against retaliation after the US imposed tariffs on steel and aluminium from Europe, Mexico and Canada – saying they would be "making a mistake".
Despite the tensions, the G7 issued a joint statement, which the Canadian leader said featured "consensus language" on several areas.
Addressing Mr Trump's comments on trade, Mr Trudeau said: "I highlighted directly to the president that Canadians did not take it lightly, the United States' move forward with significant tariffs on our steel and aluminium industry.
"[I] particularly did not take lightly the fact that it's based on national security reason that for Canadians who either themselves or whose parents or community members have stood shoulder-to-shoulder with American soldiers in far off lands, in conflicts from the First World War onwards, that it's kind of insulting.
"And I highlighted it was not helping in our renegotiation of NAFTA (North American Free Trade Agreement) and that it would be with regret but it would be with absolute certainty and firmness that we move forward with retaliatory measures on 1 July – applying equivalent tariffs to the ones that the Americans have unjustly applied to us."
He added: "Canadians are polite, we're reasonable but we also will not be pushed around."
Mr Trudeau's comments come after President Trump spoke to reporters as he left the summit early on Saturday to catch a flight to Singapore, where he will meet North Korean leader Kim Jong Un on Tuesday.
He said he suggested to his G7 colleagues that all trade barriers between their countries – including tariffs and subsidies – be eliminated.
"You go tariff-free, you go barrier-free, you go subsidy free," he said. "I did suggest it and people I guess were going to go back to the drawing board."
The president said the group was starting to be more committed to "fairer trade" with the US.
"The United States has been taken advantage of for decades and decades," he said.
Mr Trump said he did not blame the G7 for trade deals but warned "those days are over".
The president said the US was prepared to stop trading with some countries if things did not change – citing India as one country that puts tariffs as high as 100% on American goods.
Later, French leader Emmanuel Macron said the joint statement from all seven countries would provide a sign that attempts to "stabilise things" on trade were working.
The summit was dubbed "the G6 plus one" due to the billionaire tycoon's isolation over trade and his decision to pull the US out of the Iran nuclear deal.
Speaking after Mr Trudeau, Theresa May said there had been some "difficult discussions" and that the debate between leaders had been "open and frank".
The PM said they had reached "agreed language" on trade and on Russia but said the EU would still proceed with implementing retaliatory measures to Mr Trump's latest tariffs.
She said the UK had expressed its "deep disappointment at the unjustified decision by the US to apply tariffs to EU steel and aluminium imports" at the meeting.
In a show of unity in their joint statement, the G7 leaders vowed to combat protectionism and cut trade barriers and included commitments to ensure Iran will "never seek, develop or acquire a nuclear weapon".
The statement also included demands for Russia to stop undermining Western democracies – despite Mr Trump repeatedly calling for Vladimir Putin to rejoin the world leaders and form a G8.
There was also an agreement to disagree on climate change following the US president's decision to leave the Paris climate accord last year.
The United States will not allow other countries to impose massive Tariffs and Trade Barriers on its farmers, workers and companies. While sending their product into our country tax free. We have put up with Trade Abuse for many decades — and that is long enough.
— Donald J. Trump (@realDonaldTrump) June 9, 2018
After setting off from Quebec, Mr Trump tweeted that his G7 counterparts "fully understand where I am coming from" on trade and insisted: "After many decades, fair and reciprocal Trade will happen!"
He added: "We have put up with Trade Abuse for many decades – and that is long enough."
More from Donald Trump
Mr Macron also reflected on social media, tweeting in French: "It is not a question of being naive: a statement does not solve all the differences.
"It is not the European Union that is closed to the Americans. We need to work on the reality of trade between the European Union and the United States. We have to lift all doubts."