Major coal producers such as the United Kingdom, which has just closed its last coal-fired power plant, Canada, France, Germany and Australia signed the voluntary appeal during the 29th United Nations Climate Change Conference (COP29), which is taking place in Azerbaijan until Friday.
But China, India and the United States, among the five largest producers, are not part of the pledge.
The signatories promise that their next climate plans will not include any new coal-fired power plants, although the pledge does not oblige them to give up mining or exporting the material.
When burned, coal releases more carbon dioxide (CO2) into the atmosphere than oil and gas, and its use continues to increase worldwide.
The intensive use of these fossil fuels, which are largely responsible for greenhouse gas (GHG) emissions, has contributed greatly to climate change.
Angola, Uganda and Ethiopia are other signatories to the agreement developed with the "Powering Past Coal" alliance, a coalition of governments, companies and organisations that aims to transition from coal-fired to clean energy.
"The commitment to transition away from fossil fuels must be realised through real action on the ground," said Wopke Hoekstra, European Commissioner for Climate Action, who signed the agreement.
New coal projects "must stop," said British Energy Minister Ed Miliband.
The signing by Australia, whose Labor government, in power since 2022, is ambitious on climate, was welcomed by non-governmental organisations (NGOs).
"The coal door has been closed. Now it must be locked," Erin Ryan of Climate Action Network – Australia told Agence France-Presse in Baku.