Nicaragua has reportedly signed the Paris climate change agreement, leaving Syria and the US as the only two nations yet to add their names to the pact after Donald Trump's decision to withdraw.

The government said the 2015 deal - which aims to reduce greenhouse gases to try and prevent a global temperature rise of more than two degrees - represented “the only international instrument that offers the conditions to face global warming and its effects,” according to a statement read out by Vice President Rosario Murillo.

Nicaragua's President Daniel Ortega had signalled last week that his country would sign the deal soon, but did not say when. Nicaragua's government had initially refused to sign on to the accord, saying that the deal did not require enough sacrifices by wealthy nations and did not go far enough in its goals.

The move had seemingly been in the works for some time, with newspaper El Nuevo Diario reported that Mr Ortega said back in September that: “We will soon adhere, we will sign the Paris Agreement. We have already had meetings addressing the issue and we have already programmed the accession.”

Nicaragua has been a haven for renewable energy - more than half of the nation's energy comes from geothermic, wind, solar, and wave energy. They plan on increasing that to a 90 per cent share by 2020.

10 photographs to show to anyone who doesn't believe in climate change Show all 10 1 /10 10 photographs to show to anyone who doesn't believe in climate change 10 photographs to show to anyone who doesn't believe in climate change A group of emperor penguins face a crack in the sea ice, near McMurdo Station, Antarctica Kira Morris 10 photographs to show to anyone who doesn't believe in climate change Floods destroyed eight bridges and ruined crops such as wheat, maize and peas in the Karimabad valley in northern Pakistan, a mountainous region with many glaciers. In many parts of the world, glaciers have been in retreat, creating dangerously large lakes that can cause devastating flooding when the banks break. Climate change can also increase rainfall in some areas, while bringing drought to others. Hira Ali 10 photographs to show to anyone who doesn't believe in climate change Smoke – filled with the carbon that is driving climate change – drifts across a field in Colombia. Sandra Rondon 10 photographs to show to anyone who doesn't believe in climate change Amid a flood in Islampur, Jamalpur, Bangladesh, a woman on a raft searches for somewhere dry to take shelter. Bangladesh is one of the most vulnerable places in the world to sea level rise, which is expected to make tens of millions of people homeless by 2050. Probal Rashid 10 photographs to show to anyone who doesn't believe in climate change Sindh province in Pakistan has experienced a grim mix of two consequences of climate change. “Because of climate change either we have floods or not enough water to irrigate our crop and feed our animals,” says the photographer. “Picture clearly indicates that the extreme drought makes wide cracks in clay. Crops are very difficult to grow.” Rizwan Dharejo 10 photographs to show to anyone who doesn't believe in climate change Hanna Petursdottir examines a cave inside the Svinafellsjokull glacier in Iceland, which she said had been growing rapidly. Since 2000, the size of glaciers on Iceland has reduced by 12 per cent. Tom Schifanella 10 photographs to show to anyone who doesn't believe in climate change A river once flowed along the depression in the dry earth of this part of Bangladesh, but it has disappeared amid rising temperatures. Abrar Hossain 10 photographs to show to anyone who doesn't believe in climate change A shepherd moves his herd as he looks for green pasture near the village of Sirohi in Rajasthan, northern India. The region has been badly affected by heatwaves and drought, making local people nervous about further predicted increases in temperature. Riddhima Singh Bhati 10 photographs to show to anyone who doesn't believe in climate change A factory in China is shrouded by a haze of air pollution. The World Health Organisation has warned such pollution, much of which is from the fossil fuels that cause climate change, is a “public health emergency”. Leung Ka Wa 10 photographs to show to anyone who doesn't believe in climate change Water levels in reservoirs, like this one in Gers, France, have been getting perilously low in areas across the world affected by drought, forcing authorities to introduce water restrictions. Mahtuf Ikhsan

The World Bank called it a “a renewable energy paradise” in 2013.

The signing of the deal by Nicaragua means that the US is further isolated after Mr Trump's decison withdraw and widespread criticism by other world leaders he faced as a result.