text: Stromatolites are layered biochemical accretionary structures formed in shallow water by the trapping, binding, and cementation of sedimentary grains by biofilms (microbial mats) of microorganisms, especially cyanobacteria.
  During the Precambrian, stromatolite communities of microorganisms grew in most marine and non-marine environments in the photic zone. After the Cambrian explosion of marine animals, grazing on the stromatolite mats by herbivores greatly reduced the occurrence of the stromatolites in marine environments. Since then, they are found mostly in hypersaline conditions where grazing invertebrates cannot live (e.g. Shark Bay, Western Australia). Stromatolites provide ancient records of life on Earth by fossil remains which date from 3.5 Ga ago. The oldest undisputed evidence of cyanobacteria is dated to be 2.1 Ga ago, but there is some evidence for them as far back as 2.7 Ga ago. Cyanobacteria might have also emerged 3.5 Ga ago. Oxygen concentrations in the atmosphere remained around or below 0.001% of today's level until 2.4 Ga ago (the Great Oxygenation Event). The rise in oxygen may have caused a fall in the concentration of atmospheric methane, and triggered the Huronian glaciation from around 2.4 to 2.1 Ga ago. In this way, cyanobacteria may have killed off most of the other bacteria of the time.
  Oncolites are sedimentary structures composed of oncoids, which are layered structures formed by cyanobacterial growth. Oncolites are similar to stromatolites, but instead of forming columns, they form approximately spherical structures that were not attached to the underlying substrate as they formed. The oncoids often form around a central nucleus, such as a shell fragment, and a calcium carbonate structure is deposited by encrusting microbes. Oncolites are indicators of warm waters in the photic zone, but are also known in contemporary freshwater environments. These structures rarely exceed 10 cm in diameter.
  One former classification scheme of cyanobacterial fossils divided them into the porostromata and the spongiostromata. These are now recognized as form taxa and considered taxonomically obsolete; however, some authors have advocated for the terms remaining informally to describe form and structure of bacterial fossils.