Biogas is produced by the biological breakdown of organic matter in absence of oxygen. Natural gas is basically methane. It is formed in a natural way or obtained during the formation of petroleum oil. Coal gas is the gas, which is obtained as the by product during processing of coal to get coke.