The sun does not shine at night, even in California. Summer is often accompanied by a loss of wind power. Energy sources that can be regulated are direly needed, depending on location, countries tgat decarbonized use either hydropower, geothermal or nuclear plants as a backup. Batteries are still too expensive for the needs of an industrial society, plus you have to replace them often.