Spain has had a democratic socialist government since 2018, and has now fully transitioned to renewable energy, showing what's possible when the political will exists.
"Spain’s grid ran entirely on renewable energy for the first time on April 16, with wind, solar, and hydro meeting all peninsular electricity demand during a weekday. Five days later, solar set a new record, generating 20,120 MW of instantaneous power – covering 78.6% of demand and 61.5% of the grid mix."