There is already a process for it and it's called biodiesel [0]. It has its own range of problems and is not as sexy as the electric cars (that depend on rare earth metals for production of batteries with limited recyclability BTW), but could be much more sustainable long-term.
[0] https://en.wikipedia.org/wiki/Biodiesel