Algal mats are one of many types of microbial mat that forms on the surface of water or rocks. They are typically composed of blue-green cyanobacteria and sediments. Formation occurs when alternating layers of blue-green bacteria and sediments are deposited or grow in place, creating dark-laminated layers. Stromatolites are prime examples of algal mats. Algal mats played an important role in the Great Oxidation Event on Earth some 2.3 billion years ago. Algal mats can become a significant ecological problem, if the mats grow so expansive or thick as to disrupt the other underwater marine life by blocking the sunlight or producing toxic chemicals.