You take coal, Add heat and steam, out comes CO and hydrgen, together they are gassified coal otherwise known as syngas.
It can be turned directly to electricity in a fuel cell about 4 times more efficiently.
It can also be used to produce anything that comes from petroleum.
Gassified coal is our friend.