Spain will host the COP25 climate summit in December, the UN said, after Chile abandoned plans to hold it due to deadly anti-government protests.
"We are pleased to announce the COP Bureau has agreed that COP25 will take place from 2-13 December in Madrid," United Nations climate chief Patricia Espinosa said on Twitter.
After more than 10 days of street protests, Chilean President Sebastian Pinera said his country was not in a position to host either the 2-13 December climate convention as well as the 16-17 November Asia Pacific Economic Cooperation (APEC) summit.
"This has been a very difficult decision, a decision that has been deeply painful because we know exactly how important APEC and COP are for Chile and the world," said Mr Pinera.
"When a father has problems, he must always prioritise his family over other options. The same goes for a president, he must always put his own compatriots first, ahead of any other considerations," he added.
He said Spanish Prime Minister Pedro Sanchez had "made a generous offer to host the COP25 summit in Madrid" on the originally scheduled dates which the Spanish government promptly confirmed.
"It will be our pleasure to host COP25 in Madrid. A privilege to back and facilitate global action on climate," Spain's minister for ecological transition, Teresa Ribero, tweeted.
It will be our pleasure to host #COP25 in #Madrid.A privilege to back &facilitate global acción on #climate;an honour to stress the European and #LAC Spanish soul. Progressive & constructive multilateralism is the best answer to global challenges.Txs @KurtykaMichal @UNFCCC #Chile https://t.co/jSJIjXntJO— Teresa Ribera /🌹 (@Teresaribera) November 1, 2019
APEC said it supported Chile's decision but gave no indication there would be a replacement summit this year, saying only that Malaysia would host the 2020 event.
Chile is grappling with its worst social crisis in decades, one that shows little sign of abating despite Mr Pinera announcing a raft of measures aimed at placating protesters.
Demonstrators have demanded that the 69-year-old right-wing leader, whose personal fortune is estimated by Forbes at €2.5 billion, step down.
They have been angered by low salaries and pensions, poor public health care and education, and the gap between rich and poor.
Mr Pinera announced last week an increase in the minimum wage and pensions as well as measures to alleviate sky-high health care costs and a streamlining of public offices.
Protests began on 18 October and during the first few days there was widespread destruction, arson and looting.
Demonstrations have been largely calm over the last week but there were violent clashes between demonstrators and security services on Monday, when shops were looted and a building set on fire.
Huge numbers took to the streets on Wednesday, with the country semi-paralysed as numerous shops and businesses remained closed.
Twenty people have been confirmed killed in the unrest. Chilean prosecutors said Wednesday they were investigating a total of 23 deaths thought to be linked to the crisis.
Sixteen of the victims were killed "during the alleged commission of so-called 'common' crimes," five "by actions of agents of the state" and two "under state custody," prosecutors said on Twitter.
A mission led by the United Nations High Commissioner on Human Rights Michelle Bachelet, Chile's former president, is expected to open a probe later this week into allegations of police brutality.
Amnesty International has expressed concern about claims of "sexual torture," reports of eye injuries and situations in which police or military action allegedly directly led to a death.