France's government is unveiling a law to ban all exploration and production of oil and natural gas on the country's mainland and overseas territories by 2040.

The move is largely symbolic, however, as France's oil and gas production represents just 1% of national consumption — the rest is imported.

Current drilling permits will not be renewed, according to the draft bill obtained by The Associated Press.

The bill is to be formally presented in a Cabinet meeting later Wednesday (6 September). France currently has 63 oil and gas drilling on its territory.

The government claims such a ban is a world first. It is part of a larger plan to wean the country's economy from fossil fuels, to encourage clean energy and fulfil France's commitments under the Paris Climate Agreement to curb global warming.

The bill elaborated by environment minister Nicolas Hulot also includes a definitive ban on all shale gas exploration and extraction.

Until now, only hydraulic fracturing, a process better known as fracking, was banned. All other potential methods and experimentations are now to be prohibited.

Hulot has already announced in July that France will stop producing power from coal — now 5% of the total — by 2022.

In parallel, the country wants to reduce the proportion of its power from nuclear energy to 50% by 2025, from the current 75%.