Spain’s new government declared a national climate emergency on Tuesday, taking a formal first step toward enacting ambitious measures to fight climate change.

The declaration approved by the Cabinet says the left-of-center Socialist government will send to parliament within 100 days its proposed climate legislation. The targets coincide with those of the European Union, including a reduction of net carbon emissions to zero by 2050.

More Images
Hundreds of climate protesters who are on a three-day protest march from Landquart to Davos pass the city of Klosters, Switzerland, Monday, Jan. 20, 2020. The World Economic Forum will start on Tuesday. (AP PhotoMichael Probst)

Spain’s new government declared a national climate emergency on Tuesday, taking a formal first step toward enacting ambitious measures to fight climate change.

Hundreds of climate protesters who are on a three-day protest march from Landquart to Davos pass the city of Klosters, Switzerland, Monday, Jan. 20, 2020. The World Economic Forum will start on Tuesday. (AP PhotoMichael Probst)

Details of the plan are to be made public when the proposed legislation is sent to parliament for approval.

This January 2008 photo provided by Sebastian Pfautsch shows new shoots emerging from the bark of a eucalyptus tree following a wildfire near Mansfield, Victoria, Australia. Many of Australia’s forests are adapted to fire, but more frequent blazes due to climate change can slow or halt their recovery. (Sebastian Pfautsch via AP)

Also Tuesday, young climate activists including Greta Thunberg told the elites gathered at the World Economic Forum in Switzerland they are not doing enough to deal with the climate emergency and warned them that time was running out.

Participants of the climate protest march gather at the train station in Landquart, Switzerland, Sunday, Jan. 19, 2020. Around 500 activists came together to hike the 40 kilometers to Davos to protest against climate change and global warming next Tuesday. (Walter BieriKeystone via AP)

Participants of the climate protest march gather at the train station in Landquart, Switzerland, Sunday, Jan. 19, 2020. Around 500 activists came together to hike the 40 kilometers to Davos to protest against climate change and global warming next Tuesday. (Walter BieriKeystone via AP)

This combination photo shows Swedish climate activist Greta Thunberg speaking at the COP25 summit in Madrid, Spain on Dec. 11, 2019, left, and President Donald Trump speaking at a campaign rally in Battle Creek, Mich. on Dec. 18, 2019. When climate activist Greta Thunberg, also 16, was named Time magazine's 2019 person of the year, President Donald Trump took to Twitter to call her choice “ridiculous." (AP PhotoPaul White, left, and Evan Vucci)

This combination photo shows Swedish climate activist Greta Thunberg speaking at the COP25 summit in Madrid, Spain on Dec. 11, 2019, left, and President Donald Trump speaking at a campaign rally in Battle Creek, Mich. on Dec. 18, 2019. When climate activist Greta Thunberg, also 16, was named Time magazine's 2019 person of the year, President Donald Trump took to Twitter to call her choice “ridiculous." (AP PhotoPaul White, left, and Evan Vucci)

Spain's coalition government wants up to 95% of the Mediterranean country’s electricity to come from renewable sources by 2040. The plan also foresees eliminating pollution by buses and trucks and making farming carbon neutral.

Hundreds of climate protesters who are on a three-day protest march from Landquart to Davos pass the city of Klosters, Switzerland, Monday, Jan. 20, 2020. The World Economic Forum will start on Tuesday. (AP PhotoMichael Probst)

Hundreds of climate protesters who are on a three-day protest march from Landquart to Davos pass the city of Klosters, Switzerland, Monday, Jan. 20, 2020. The World Economic Forum will start on Tuesday. (AP PhotoMichael Probst)

Details of the plan are to be made public when the proposed legislation is sent to parliament for approval.

More than two dozen countries and scores of local and regional authorities have declared a climate emergency in recent years.

Scientists say the decade that just ended was by far the hottest ever measured on Earth, capped off by the second-warmest year on record.

Hundreds of climate protesters who are on a three-day protest march from Landquart to Davos pass the city of Klosters, Switzerland, Monday, Jan. 20, 2020. The World Economic Forum will start on Tuesday. (AP PhotoMichael Probst)

Hundreds of climate protesters who are on a three-day protest march from Landquart to Davos pass the city of Klosters, Switzerland, Monday, Jan. 20, 2020. The World Economic Forum will start on Tuesday. (AP PhotoMichael Probst)

Also Tuesday, young climate activists including Greta Thunberg told the elites gathered at the World Economic Forum in Switzerland they are not doing enough to deal with the climate emergency and warned them that time was running out.

Follow AP's full coverage of climate change issues at https://www.apnews.com/Climate

This January 2008 photo provided by Sebastian Pfautsch shows new shoots emerging from the bark of a eucalyptus tree following a wildfire near Mansfield, Victoria, Australia. Many of Australia’s forests are adapted to fire, but more frequent blazes due to climate change can slow or halt their recovery. (Sebastian Pfautsch via AP)

This January 2008 photo provided by Sebastian Pfautsch shows new shoots emerging from the bark of a eucalyptus tree following a wildfire near Mansfield, Victoria, Australia. Many of Australia’s forests are adapted to fire, but more frequent blazes due to climate change can slow or halt their recovery. (Sebastian Pfautsch via AP)

Participants of the climate protest march gather at the train station in Landquart, Switzerland, Sunday, Jan. 19, 2020. Around 500 activists came together to hike the 40 kilometers to Davos to protest against climate change and global warming next Tuesday. (Walter BieriKeystone via AP)

Participants of the climate protest march gather at the train station in Landquart, Switzerland, Sunday, Jan. 19, 2020. Around 500 activists came together to hike the 40 kilometers to Davos to protest against climate change and global warming next Tuesday. (Walter BieriKeystone via AP)

This combination photo shows Swedish climate activist Greta Thunberg speaking at the COP25 summit in Madrid, Spain on Dec. 11, 2019, left, and President Donald Trump speaking at a campaign rally in Battle Creek, Mich. on Dec. 18, 2019. When climate activist Greta Thunberg, also 16, was named Time magazine's 2019 person of the year, President Donald Trump took to Twitter to call her choice “ridiculous." (AP PhotoPaul White, left, and Evan Vucci)

This combination photo shows Swedish climate activist Greta Thunberg speaking at the COP25 summit in Madrid, Spain on Dec. 11, 2019, left, and President Donald Trump speaking at a campaign rally in Battle Creek, Mich. on Dec. 18, 2019. When climate activist Greta Thunberg, also 16, was named Time magazine's 2019 person of the year, President Donald Trump took to Twitter to call her choice “ridiculous." (AP PhotoPaul White, left, and Evan Vucci)