Cyanobacteria are adaptable and dominant organisms that exist in many harsh and extreme environments due to their great ecological tolerance. They produce various secondary metabolites, including cyanotoxins. While cyanobacteria are well studied in surface waters and some aerial habitats, numerous other habitats and niches remain underexplored. We collected 61 samples of: (i) biofilms from springs, (ii) aerial microbial mats from buildings and subaerial mats from caves, and (iii) water from borehole wells, caves, alkaline, saline, sulphidic, thermal, and iron springs, rivers, seas, and melted cave ice from five countries (Croatia, Georgia, Italy, Serbia, and Slovenia). We used (q)PCR to detect cyanobacteria (phycocyanin intergenic spacer-PC-IGS and cyanobacteria-specific 16S rRNA gene) and cyanotoxin genes (microcystins-mcyE, saxitoxins-sxtA, cylindrospermopsins-cyrJ), as well as amplicon sequencing and morphological observations for taxonomic identification. Cyanobacteria were detected in samples from caves, a saline spring, and an alkaline spring. While mcyE or sxtA genes were not observed in any sample, cyrJ results showed the presence of a potential cylindrospermopsin producer in a biofilm from a sulphidic spring in Slovenia. This study contributes to our understanding of cyanobacteria occurrence in diverse habitats, including rare and extreme ones, and provides relevant methodological considerations for future research in such environments.