Nicaragua has announced it will sign the Paris Agreement on climate change, which leaves the US and Syria as the only two countries not participating in the global accord.

Nearly 200 countries signed the deal in December 2015 in an effort to reduce global greenhouse gas emissions and contain global warming while helping poorer countries adapt to an already-changed planet.

Newspaper El Nuevo Diario reported that Nicaragua's President Daniel Ortega said on 18 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."

The Central American nation had originally opposed signing the accord because the goals outlined in the text did not go far enough.

Scientists had confirmed that the emissions levels agreed upon by top polluters like the US, EU, China, and India were not low enough to keep sea levels from rising and keep global warming to 2 degrees Celsius, let alone the recommended and more ambitious goal of 1.5 degrees Celsius by 2100.

However, parties to the deal agreed - it was a far cry from having no global climate change agreement at all.

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.

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

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

Paul Oquist, a negotiator for Nicaragua in Paris at the time, told news outlet Democracy Now that the accord actually projects a "three-degree world, and that is catastrophic and unacceptable."

The country also felt that poorer, developing nations being held to the same environmental standards as wealthier countries that have been historical high polluters was unfair.

However, now Mr Ortega agreed the country should sign on to the deal in a show of solidarity with other nations, particularly given Donald Trump's withdrawal of the US and widespread criticism by other world leaders he faced as a result.

Mr Trump said the Paris Agreement, put into action for the US by an executive order signed by former President Barack Obama, put American workers in the coal, steel, and other manufacturing industries at an economic disadvantage.

Mr Obama's team changed a typo in the agreement text at the last minute in order to be able to bypass climate deniers in the US Congress so the accord is not a legally binding treaty for the US. Mr Trump did not have to formally withdraw, according to former State Department officials.

"We have to be in solidarity with this large number of countries that are the first victims, who are already the victims and are the ones who will continue to suffer the impact of these disasters and which are countries in Africa, Asia, Latin America, of the Caribbean, which are in highly vulnerable areas," said Mr Ortega in a translated quote.

The agreement does not officially come into effect until 2020 so Nicaragua will have until then to come up with the required national action plan as well as to formalise it into a law.