Spain will now play host to a series of United Nations climate talks in December.
It comes after original hosts Chile pulled out following anti-government protests in the country.
However the last minute change in venue is proving to be a logistical challenge.
Spanish visas and accommodation also have to be issued for the 25,000 people who are expected to attend the event.
It's also left 16-year-old environment activist Greta Thunberg stuck on the wrong continent.

Thai teen kills 7 in rampage at home and school before shooting himself
US appeals court blocks Trump’s $400 million White House ballroom project
Spain dismantles one of Mediterranean's largest human smuggling networks
Syria says bomb on minibus near Damascus wounded 14, deaths reported mistakenly
Spain hopes to transfer migrant minors to mainland within weeks
