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.

Nepal flood losses estimated at $2.56 billion, official says
US investigates deadly strike on Iranian wedding
Nepal to rebuild early-warning system on China border after deadly flood, sources say
US House passes bill to crack down on university boycotts of Israel
Kuwait air defences deal with Iranian missile, drone attacks
Spain's PM Sanchez says no evidence Morocco orchestrated Ceuta border surge
Two Palestinian teens killed in West Bank raid by Israeli settlers, army
Latest Indonesian free meal poisoning outbreaks affect 800, lawmaker says
