Nearly 50 countries vulnerable to climate change have agreed to use only renewable energy by 2050.

The 48 members of the Climate Vulnerable Forum made the decision while attending the United Nations Climate Change Conference in Marrakech, Morocco.

The Climate Vulnerable Forum was set up in 2009 and is made up of countries that are disproportionately affected by climate change.

Members, including the likes of Ethiopia, Marshall Islands and Bangladesh, agreed to make their energy production 100 per cent renewable "as rapidly as possible" and by between 2030 and 2050 at the latest.

Low-lying Bangladesh is particularly vulnerable to rising sea levels while fellow members the Maldives and the Marshall Islands have already suffered heavy flooding linked to climate change.

The forum also vowed to take action to help limit global warming to 1.5 degrees Celsius above pre-industrial levels.

Mattlan Zackhras, Minister in Assistance to the President of the Marshall Islands told IANS: "We are pioneering the transformation towards 100 percent renewable energy, but we want other countries to follow in our footsteps in order to evade catastrophic impacts we are experiencing through hurricanes, flooding and droughts."

Bangladesh's adviser at the forum, Saleemul Huq, said: "We shouldn’t see it as a burden, but an opportunity. Climate vulnerable countries can seize those opportunities," Climate Home reported.

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

Former Vice-President Al Gore described the forum's statement as an ambitious vision for others to follow.

According to The Guardian, he said:" [It] sets the pace for the world’s efforts to implement the Paris agreement.

"These ambitious and inspiring commitments show the path forward for others and give us all renewed optimism that we are going to meet the challenge before us and meet it in time."

Many leaders around the world including current US Secretary of State John Kerry have expressed fears Donald Trump will put his climate change scepticism into practise and boycott key environmental targets.