Media caption,

Global leaders react to the deal.

A historic deal has been struck at the UN'sCOP 27 summit that will see rich nations pay poorer countries for damage caused by climate change.

It ends almost three decades of waiting for a solution to the climate crisis.

Progress on cutting fossil fuels was not appreciated by developed nations.

Is there a clear commitment to phase out fossil fuels? The president of the previous COP summit in Glasgow said that the text wasn't in it.

The talks in Sharm el-Sheikh went on for two days.

The historic moment the "loss and damage fund" was agreed in the early hours of Sunday was met with warm applause.

It's a huge symbolic and political statement from developed nations that have resisted a fund to cover climate impacts.

Powerful statements from vulnerable nations started the summit. The alternative would consign us to a watery grave, according to the prime minister.

Pakistan's climate minister Sherry Rahman told journalists that she was very happy with the agreement.

She said that she was confident that they had turned a corner in how they work together.

The devastating floods in at-risk nation Pakistan this summer, which killed about 1,700 people, have been a powerful backdrop for this summit.

The environment minister of Antigua and Barbuda, and chair of the Alliance of Small Island States, said on Sunday that the deal was a "win for the entire world" and "restored global faith in this critical process dedicated to ensuring no one is left behind"

Egypt was unhappy with compromises on fossil fuels and climate change made by nations and groups.

Climate cchart
Image caption, This chart shows progress towards the existing climate finance target of $100bn, which was agreed at COP15 in Copenhagen in 2009

"I'm incredibly disappointed that we weren't able to go further," said the UK's lead negotiator.

He said that countries that fought to weaken the ambition to cut greenhouse gas emissions need to look at the countries that are at risk.

The progress made at COP 27 was welcomed by the UK Prime Minister.

There were no commitments to reduce use of fossil fuels in the deal.

The ambiguous new language about low emissions energy could open the door to some fossil fuels being considered part of a green energy future.

According to New Zealand's climate minister, there were attempts by the petrol states to roll back the agreements.

Nations want the world to cut fossil fuel use.

Developing nations such as India and those reliant on oil and gas push back because they want to take advantage of their reserves.

Emissions per country bar chart

Despite a last-minute intervention by Switzerland, richer nations seemed to concede.

Expectations were low at the beginning of the summit, which was supposed to be an action summit that implemented agreements made a year ago.

For a long time, developed nations were worried about signing a blank cheque for climate impacts.

The details of the payments are still being worked out.

The conference was marked by deadlock and dramatic moments, including the first appearance on the global stage by Brazil's President-elect.

He told the crowd that Brazil is going to end deforestation and restore the Amazon.

It gave hope to activists and observers of the climate talks that there is more to it than meets the eye.

Fossil fuel delegates were out in full force, up 25% from last year.

The first Children and Youth Pavilion at a COP was located in the large tents where nations, experts and NGOs lay out their stands.

The deal that will pay $20 billion to Indonesia to transition away from coal was celebrated as a success of the summit.