You can generate methane from rotting garbage, cow dung and whatnot. Almost anything that rots. And some of it is now torched as the transport is too expensive from far away oilfields.
But here's and idea: burn that methane directly in fuel cell?
https://newatlas.com/platinum-free-methane-fueled-fuel-cells...
People are WAY too exited about that "only water vapor from the tailpipe!" -hype.