 During gasification, the coal is mixed with oxygen and steam while also being heated and pressurized.During the reaction, oxygen and water molecules oxidize the coal into carbon monoxide (CO), while also releasing hydrogen gas (H2).This used to be done in underground coal mines, and also to make town gas which was piped to customers to burn for illumination, heating, and cooking.