In the final communiqué at the end of two-day their summit in Sicily, the heads of the world's seven leading industrialized democracies acknowledged that the United States stood apart on the 195-nation Paris agreement to cut pollution levels.
The decision whether the exit the accord has been among the most factious of the Trump administration.
"His views are evolving which exactly as they should be".
A top White House adviser said the president's views were evolving on the issue, but Trump wasn't immediately swayed by arguments from Chancellor Angela Merkel of Germany, France's President Emmanuel Macron and others to honor the Paris Agreement, brokered in 2015 by nearly 200 nations to slash fossil fuel emissions and boost funding to ease impacts of global warming.
President Trump rounded out his first foreign trip since taking office by joining other G7 leaders as they walked the streets of Taormina, Sicily.
Tensions recently escalated between the two countries after the Trump administration imposed new tariffs on softwood lumber from Canada and railed against its pricing of domestic milk to cover more dairy ingredients, which impacts US dairy producers. Macron hailed this as "one of the true outcomes of this G-7".
The joint communiqué made clear that all the G-7 nations except the United States remained determined to carry out the Paris agreement.
Alden Meyer, the director of strategy and policy for the Union of Concerned Scientists, an advocacy group in Washington, said the discord over climate change was unusual for G-7 meetings.
"There have been differences, to be sure, in some past summits, but not a sharp open split like this", he said. It did state that all the countries except the US strongly support the Paris Agreement-a global effort undertaken by almost 200 countries to limit the worst impacts of climate change.
"The United States of America is in the process of reviewing its policies on climate change and on the Paris Agreement and thus is not in a position to join the consensus on these topics", reads a statement the seven countries signed.
Almost every nation that signed the 2015 agreement has agreed to curb greenhouse gas emissions. The final G-7 statement expresses "understanding" for the US review process.
The final declaration pledged to "fight against protectionism", whilst "standing firm" against "unfair" trade practices.
Climate and trade were sticking points at the two-day summit in Taormina, Sicily.
The G7 leaders also reached agreement on improving cooperation against terrorism in the wake of the bomb attack on a concert in Manchester on Monday night that left 22 people dead and dozens wounded.
The gap between Trump and other G-7 leaders on climate underscored his isolation from Europe on some major issues.
While those comments were remarkable given Trump's fierce criticism of the Paris deal as a candidate, they were also in keeping with his emerging pattern as president.
Trump told Macron he is under "heavy" pressure back in the US on the climate accord brokered by the Obama administration in 2015. It's a scandal there is no credible plan at all to protect refugees, ' he said.
Prime Minister Justin Trudeau made his major debut on the worldwide stage at a United Nations global warming conference in Paris, where the new Liberal government, crowing cheerfully that Canada was back, helped to seal a major climate deal.
The G7 is an informal gathering that meets every year under a rotating chairmanship.
Trump announced his forthcoming decision in a tweet, on the final day of his first worldwide trip as president. Trump has previously referred to climate change as a "hoax".
Canada played a leadership role in pushing for the communique to include the language on fighting protectionism, the Paris Agreement, and in particular for the reference to gender equality being "fundamental to the fulfillment of human rights", according to a federal government source.