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.

Putin says Ukraine opened 'Pandora's box' with strikes on economic targets
Israel strikes southern Syria, Damascus condemns attack
EU sends helicopters, firefighters to Serbia to tackle wildfires
Canada to impose retaliatory tariffs across a raft of US sectors
Several dead after UK police car crash, police say
Ukrainian drones kill at least 10, hit warehouse of Russian online retailer Ozon
At least 13 Tunisians missing after migrant boat sinks off Tunisia, group says
TikTok agrees to $400 million US children's privacy settlement
