Hydrogen, green hydrogen, can be produced from water, using electricity produced from renewables, like solar amd wind.
My own country is in the process of converting a decomissioned refinery into a hydrogen plant.
It may not solve much in the short term but as an energy reserve, hydrogen can find use directly as a fuel or for running gas turbines to produce electricity in replacement of conventional gas.