But the gesture opened the door for others, with Turkish President Recep Tayyip Erdogan warning that Ankara was now leaning towards not ratifying the landmark Paris climate accord.
Erdogan’s threat brought further disarray to a summit that was marred by bilateral quarrels and strife over climate protection and trade.
Photo: DPA
And in one of the weekend’s more bizarre scenes, Trump raised eyebrows by leaving a discussion and letting his daughter Ivanka take his place.
In a departure from final summit declarations that tend to outline consensus on issues that range from fighting terrorism to financial governance, the extraordinary conclusion this year spelt out differences on core issues.
It acknowledged Trump’s decision to take the United States out of the 2015 Paris deal and clearly stated Washington’s wish to continue using and selling fossil fuels that are a main driver of global warming.
The declaration also stated for the first time the right of countries to protect their markets with “legitimate trade defence instruments” – wording that essentially gives Trump wiggle room to push on with his “America First” policy.
The nationalistic stance has set him on collision course with many of America’s allies, who warned Trump against an isolationist path and starting a trade war.
“Where there is no consensus, the communique spelt out the discord,” said host Chancellor Angela Merkel.
READ ALSO: Trump versus the rest as violent G20 wraps up
‘Problem’ with Paris deal
But with Trump determinedly leading the US out of the climate accord ratified by 153 countries, Erdogan said he was leaning towards not completing the ratification process.
“After that step taken by America, the position that we adopt is in the direction of not passing it in parliament,” Erdogan said.
He also suggested some other, unidentified G20 countries had a “problem” with the agreement.
Thomas Bernes from the think-tank Centre for International Governance Innovation described the final declaration as a “masquerade”.
“When compared to the G20 dynamic since the London summit in 2009, it’s a step back: a clear signal against protectionism to fight the financial crisis becomes a mixed signal.”
Trail of destruction
If the meetings within the tightly secured venue were anything but harmonious, outside chaos and violence gripped Germany’s second city.
Ten minutes’ walk from the summit, charred road barricades, trashed shops, debris and shattered glass bore testimony to an anarchic Friday night of street clashes between protesters and police, when commandos chased militants who hurled rocks from rooftops.
The clashes blocked US First Lady Melania Trump at her residence on Friday, forcing G20 organisers to completely alter a programme for spouses of visiting leaders.
On Saturday, thousands of anti-riot cops were again on guard, as helicopters hovered overhead, with tens of thousands of demonstrators on the march.
Fresh clashes erupted early Sunday in the streets of Hamburg following the end of the G20 summit, with protesters setting fire to a number of vehicles and police reporting more officers injured and more arrests.
READ ALSO: 12 hours in Hamburg chasing down G20 protests
Trump vs. Putin