Spain has launched an ambitious plan to switch its electricity system entirely to renewable sources by 2050 and completely decarbonize its economy soon after. By mid-century greenhouse gas emissions would be slashed by 90 percent from 1990 levels under Spain’s draft climate change and energy transition law.