oil and gas are hydrocarbons (molecules that have only hydrogen and carbon in them). coal is mostly carbon. these fuels are called fossil fuels because they are dug up from underground. coal mining digs up solid fuel; gas and oil wells bring up liquid fuel. fossil fuel was not much used until the middle ages. coal became the main kind of fuel with the industrial revolution.