text: Some phenolic compounds produced from previous reactions worked as bactericides and the actinomycetales order of bacteria  also produced antibiotic compounds (e.g., streptomycin). Thus the action of anaerobic bacteria ceased at about 10 m below the water or sediment. The mixture at this depth contained fulvic acids, unreacted and partially reacted fats and waxes, slightly modified lignin, resins and other hydrocarbons. As more layers of organic matter settled into the sea or lake bed, intense heat and pressure built up in the lower regions. As a consequence, compounds of this mixture began to combine in poorly understood ways to kerogen. Combination happened in a similar fashion as phenol and formaldehyde molecules react to urea-formaldehyde resins, but kerogen formation occurred in a more complex manner due to a bigger variety of reactants. The total process of kerogen formation from the beginning of anaerobic decay is called diagenesis, a word that means a transformation of materials by dissolution and recombination of their constituents.