Microorganisms may play an important role in the aggregation of sediments and the formation of sedimentary structures. Biofilms are microbial aggregates that, in a mature stage, can develop into microbial mats, fibrillar networks that irreversibly bind filaments of cyanobacteria and sediments, inside which it has been identified a stratification with functional groups of microorganisms that coexist, generate symbiotic relationships and potentially modify the characteristics of sediments and sedimentary rocks, particularly in extreme environments. In this work, filamentous cyanobacteria from biofilms of a lacustrine environment with intervals of flooding/desiccation and a saline environment, and a microbial mat from the Agua Caliente Thermal...