The unity of the joint statement from the June 15-17 G7 summit in the French lakeside resort of Evian-les-Bains was notable as US President Donald Trump's administration has at times been hard to bring on board, particularly on the thorny issue of how to end the Ukraine war.
It followed what Trump called a "very good" meeting with Ukrainian President Volodymyr Zelenskiy and other G7 leaders on Tuesday, sparking optimism that a peace deal could be struck.
Zelenskiy said he could meet Trump again on Wednesday.
It also reflects how Ukraine has strengthened its position after successful drone incursions weakened Russia's hand.
The G7 leaders also welcomed the preliminary peace deal between the United States and Iran - which Trump signed on the eve of the summit - and said they are ready to contribute to its implementation.
They said they would make efforts to diversify energy supply routes to reduce dependence on the Strait of Hormuz and increase energy stocks.
On Wednesday, in a central theme of France's G7 presidency, leaders will turn their attention to critical minerals and global economic imbalances.
France is pushing partners to agree a statement on critical minerals that could include measures to help the West reduce its reliance on China and shield investors from countermeasures and dumping, diplomats said.
China spooked the global economy in 2025 when some industries nearly ground to a halt after Beijing imposed export curbs on permanent magnets made of rare earths- an episode which highlighted how reliant Western supply chains in the energy, defence and technology sectors are on these goods.
"We are negotiating texts that are significant on critical minerals and, as a consequence, on economic sovereignty," a French presidency official said before the summit.
Measures under discussion in recent months have included price supports, market standards, subsidies and guaranteed purchases, as well as means to scale up private investment in critical mineral supply chains outside China.
However, any measures announced at the G7 are likely to be first steps.
The 2025 restrictions were the latest in Beijing's gradual tightening of its niche material and battery metal exports.
It has also curbed American companies' access to tungsten and antimony, among others.
Western powers are racing to secure offtake from mines and build up processing and recycling capacity, but it will take years to dent China's dominant position, which was decades in the making.
G7 leaders will also discuss how to rebalance global trade and address "predatory competition", mainly by China.
France summarises the imbalances as: China produces too much, the US consumes too much and the Europeans invest too little.
There is growing alarm in Europe at China's record trade surplus and its move up the value chain, in what analysts describe as a "second China shock" following its dominance of low-value industries in the 2000s.
France's President Emmanuel Macron sought to engage China before the summit in a last-ditch effort at co-operation.
Beijing rejects EU claims of unfair subsidies and has repeatedly vowed "strong" countermeasures to the EU's proposed "Buy European" and revised tech sovereignty rules.
G7 leaders will also discuss AI over lunch on Wednesday, with OpenAI founder Sam Altman and Anthropic CEO Dario Amodei expected to attend.