Figure 11. Processes and products of hydrocarbon generation. Relatively minor amounts of methane (CH4) are generated during shallow burial by bacterial processes. As organic matter in source rocks matures and generates oil or gas, copious amounts of hydrogen sulfide (H2S) and carbonate dioxide (CO2) are generated, along with organic acids.