First Lady Melania Trump introduced the President on Saturday, also listing off the stops the couple made during their overseas excursion.
He was also spotted chatting with German Chancellor Angela Merkel before the session began.
Speaking to members of the US military on Memorial Day weekend, Trump reaffirmed his commitment to ramping up military spending and supporting men and women in the armed services.
President Donald Trump is recapping his first foreign trip and saluting US military personnel at an event before he returns to Washington.
Mr. Trump's ambitious trip took him to Saudi Arabia, Israel, Vatican City, Belgium and Italy.
The President, who was granted five military deferments during Vietnam, commended USA troops, saying that "you are protecting us and we will always remember that".
He said the G-7 "was a tremendously productive meeting where I strengthened America's bonds". "Together we'll overcome this threat".
Trump on May 27 said in a tweet he will make a final decision in the upcoming week. Trump has previously referred to climate change as a "hoax".
Trump skipped the traditional end-of-trip news conference to avoid facing questions about a host of problems he faces upon his return to Washington later on Saturday. His top economic and national security advisers refused to answer questions about Kushner during a press briefing Saturday.
Trump, earlier in the day, rode the streets of Taormina in a golf cart as the leaders of France, Germany, Italy, Japan, Canada and the United Kingdom walked ahead of him.
President Trump is wrapping up his nine-day foreign trip and while there's word of progress on trade talks at the G7 Summit, Mr. Trump declined t...
"Terrorism is a threat, bad threat, to all of humanity", Mr. Trump said.
Backing out of the climate accord had been a central plank of Trump's campaign and aides have been exploring whether they can adjust the framework of the deal even if they don't opt out entirely.
The trip has gone off without a major misstep, with the administration touting the president's efforts to create a new coalition to fight terrorism while admonishing partners in an old alliance to pay their fair share.
"I think we hit a home run no matter where we are", Trump told the soldiers. "We are behind North Atlantic Treaty Organisation all the way". Only five of NATO's 28 members meet the target: Britain, Estonia, debt-laden Greece, Poland and the United States, which spends more on defense than all the other allies combined.
Leaders of seven wealthy democracies have reached a deal to give the Trump administration more time to tell them whether the United States plans to stay in the Paris climate agreement.