Coal, a fossil fuel, is formed when plant matter becomes buried and compacted in an anoxic environment.