Cyanobacteria are a photosynthetic nitrogen fixing group that survives in wide variety of habitats, soils, and water. Their thalli vary from unicellular to filamentous and filamentous heterocystous. They fix atmospheric nitrogen in aerobic conditions by heterocyst, specialized cells, and in anaerobic conditions.