Youngsters shout slogans during a small protest by Extinction Rebellion climate change activists outside the European Commission headquarters in Brussels, Thursday, Oct. 31, 2019. (AP Photo/Francisco Seco)

MADRID (AP) — Spain's interim leader has offered to have Madrid host an international U.N. climate conference next month that was originally scheduled to be held in riot-struck Chile.

Chilean President Sebastián Piñera on Wednesday canceled plans to host the Dec. 2-13 climate gathering, as well as a summit of Asia-Pacific leaders, to focus on restoring security in his country, where at least a dozen people have died.

A statement Thursday from Spanish Prime Minister Pedro Sánchez's office said he offered the space because he understands why the Chilean government needs to prioritize its "national social agenda" and how pressed organizers of the COP25 meeting are, given the last-minute switch.

Sánchez, a Socialist, is trying to stay in power as Spain holds a general election on Nov. 10.

Spain said U.N. officials will consider Spain's proposal next week at their meeting in Bonn, Germany. It wasn't immediately clear on what scale the conference would be held if Madrid is chosen as an alternative. Last year's climate conference in Katowice, Poland, was attended by more than 20,000 people.

U.N. Climate Change Executive Secretary Patricia Espinosa said Spain's offer would allow organizers to host the summit on its original timetable.

"It is encouraging to see countries working together in the spirit of multilateralism to address climate change, the biggest challenge facing this and future generations," Espinosa said.

Other options could be shifting the U.N. conference to a different month. Other possible host sites include major U.N. venues in New York, Geneva, Vienna, Bonn or Nairobi, Kenya.

The COP25 conference aims to work out some of the remaining unresolved rules for countries on climate efforts, smoothing the way for a bigger climate effort at the 2020 summit to encourage countries to increase commitments to cutting their climate-changing emissions.

Speaking Thursday in Santiago de Chile, Piñera called Sánchez's offer "generous" said it would allow climate experts to put together "all the progress that had been achieved."

___

Frank Jordans in Berlin and Eva Vergara in Santiago, Chile, contributed to this report.

___

Follow AP's full coverage of climate change issues at https://www.apnews.com/Climate

Plants are placed on the ground during a small protest by Extinction Rebellion climate change activists outside the European Commission headquarters in Brussels, Thursday, Oct. 31, 2019. Plants were set to be picked up or given to each new incoming European Union Commissioners. (AP Photo/Francisco Seco)
A masked man holds a placard and a fake sword during a small protest by Extinction Rebellion climate change activists outside the European Commission headquarters in Brussels, Thursday, Oct. 31, 2019. (AP Photo/Francisco Seco)
People listen speeches during a small protest by Extinction Rebellion climate change activists outside the European Commission headquarters in Brussels, Thursday, Oct. 31, 2019. (AP Photo/Francisco Seco)
Activists of the environment protection organisation 'Greenpeace' take part in a protest rally in front of the administrative court in Berlin, Germany, Thursday, Oct. 31, 2019. Three German farming families are taking Chancellor Angela Merkel to court, arguing that her government isn't doing enough to tackle climate change. The lawsuit that will be heard Thursday is the first attempt in Germany to hold authorities legally accountable for pledges they have made to reduce greenhouse gas emissions. Slogan reads: 'You are sueing for everybody - we stay next to you'. (AP Photo/Michael Sohn)
A young women holds apples during a protest rally of the environment protection organisation 'Greenpeace' in front of the administrative court in Berlin, Germany, Thursday, Oct. 31, 2019. Three German farming families are taking Chancellor Angela Merkel to court, arguing that her government isn't doing enough to tackle climate change. The lawsuit that will be heard Thursday is the first attempt in Germany to hold authorities legally accountable for pledges they have made to reduce greenhouse gas emissions. (AP Photo/Michael Sohn)