The G7 has agreed to release 100 million barrels of oil and diesel to ease supply fears that have seen prices soar.

The release will start immediately and last for four months, coordinated by the International Energy Agency. The first 20 days include a large diesel release and additional diesel releases are possible if needed, G7 leaders said in a joint statement.

The move comes after US President Donald Trump threatened to ban US diesel exports if European countries did not release more of their own stocks to the market. Under the agreement, G7 members will not impose export restrictions on energy or energy products among themselves.

The G7 includes the US, the UK, Canada, Japan, Germany, and Italy and France, with the EU also represented. “A coordinated move would lower the price of petroleum products, particularly diesel,” said French President Emmanuel Macron, whose country holds the rotating presidency. “He said Trump made it clear that there would be no export bans between members.”

Britain's Foreign Secretary Ed Miliband, who represented the UK at the talks, said the measures would stabilize energy supplies and shield households and businesses from price shocks.

US diesel prices had recently hit record highs, with the national average climbing to about $6.52 a gallon in late September before falling back slightly. Europe has agreed to free a lot of diesel and the process will begin immediately, Trump said later on Truth Social.