Oil and gas are typically produced together. If oil wells are located near gas pipelines, then the gas gets used. But if the wells are far offshore, or it is not economical to get the gas to market, then oil companies get rid of the gas by burning it – a process known as flaring.