When does cyanobacteria evolved?

When does cyanobacteria evolved? Why they are the earliest colonisers of barren areas?

Cyanobacteria evolved more than three million years back. They are the self-contained
photosynthetic organism. They can, therefore live under any type of environment and on any of substrate. Because of this, they are one of the earliest colonisers of barren areas.