Want climate news in your inbox? Sign up here for Climate Fwd:, our email newsletter.

Madrid has offered to hold the next United Nations climate talks, the leaders of Spain and Chile announced on Thursday.

The announcement came a day after Chile said it could not host the event because of intensifying protests in the country.

President Sebastián Piñera of Chile said at a news conference in Santiago on Thursday that he had heard from Prime Minister Pedro Sánchez of Spain and that Mr. Sánchez had agreed to host the summit, which is scheduled to open on Dec. 2 and run through Dec. 13.

Mr. Sánchez’s office issued a statement saying the two countries would collaborate. Chile would continue to hold the rotating presidency of the climate talks. In a Twitter message, Mr. Sánchez said “multilateral climate action is a priority” for both the United Nations and the European Union.