Paris climate change agreement
United Nations Secretary-General Ban Ki-moon (L) speaks with French President Francois Hollande during a lunch at the Royal Palace during the UN Climate Change Conference 2016 (COP22) in Marrakech, Morocco on 15 November 2016 REUTERS/Youssef Boudlal

The United Nations and France on Tuesday warned US President-elect Donald Trump about the dangers of pulling out of the 2015 Paris climate change pact and added that the move away from fossil fuels is unstoppable.

French President Francois Hollande, while addressing a meeting attended by at least 200 nations in Marrakesh, Morocco, said that the failure to take action would be "disastrous for future generations and it would be dangerous for peace".

"The United States, the largest economic power in the world, the second largest greenhouse gas emitter, must respect the commitments it has undertaken", he said. The pact was "irreversible," he added.

UN secretary-general Ban Ki-moon also called on Trump to put an end to his campaign promise to quit the 2015 Paris deal, which aims to transition from fossil fuels to cleaner energies, Reuters reported.

"What was once unthinkable has become unstoppable," the UN chief said at a news conference. As a very successful businessman, Trump would understand the market forces that are gearing the world economy towards cleaner energies such as solar and wind power, which are becoming cheaper, he added.

"I am sure he will make a fast and wise decision" on the Paris deal, he said. Ban stated that from the Arctic to Antarctica, climate change is having a severe impact and 2016 is set to be the warmest year on record.

Trump had earlier dubbed climate change a "hoax" and said he wanted to give a boost to the US coal, oil and shale industries and get rid of Barack Obama's plan to slash greenhouse gas emissions by 26 to 28% below 2005 levels by 2025.

The Paris agreement aims to phase out net green house gas emissions this century and it is supported by growing scientific evidence that man-made emissions prompt heatwaves, floods and rising sea levels.