Blue-green algae are common in soil, in both salt and fresh water, and can grow over a wide range of temperatures. They frequently form mats. Cyanobacteria can also occur as symbionts of protozoans, diatoms and lichen-forming fungi, and vascular plants.