More than 40 countries have committed to shifting away from coal, in pledges made at the COP26 climate summit.
Major coal-using countries including Poland, Vietnam and Chile are among those to make the commitment.
But some of the world’s biggest coal-dependent countries, including China and the US, did not sign up.
In a separate commitment, 20 countries, including the US, pledged to end public financing for “unabated” fossil fuel projects abroad by the end of 2022.
Such projects burn fossil fuels, like coal, oil and natural gas, without using technology to capture the CO2 emissions.
Coal is the single biggest contributor to climate change.
Signatories to the agreement have committed to ending all investment in new coal power generation domestically and internationally.
They have also agreed to phase out coal power in the 2030s for major economies, and the 2040s for poorer nations, the UK Government said.
Dozens of organisations also signed up to the pledge, with several major banks agreeing to stop financing the coal industry.