The G7 nations have committed to phasing out coal and using greener alternatives. It has also aimed to expand renewable energy production.