Mycosporine-like amino acids (MAAs) are a unique class of UV-screening bioactive molecules with potent antioxidants and photoprotective properties, synthesized by various species of cyanobacteria in different habitats. The cyanobacterial biofilms play a crucial driver in the development of ecological communities. The current study examined the existence of the photoprotective MAAs in a novel epilithic cyanobacterium Lyngbya sp. strain HKAR-15 isolated from cyanobacterial biofilms on the rock surface. The isolated MAAs were identified, purified and characterized using UV-Vis spectroscopy, HPLC (High-Performance Liquid Chromatography), ESI-MS (Electrospray Ionization-Mass Spectrometry), FTIR (Fourier Transform Infrared Spectroscopy) and NMR (Nuclear Magnetic Resonance). The compounds were recognized as palythine (retention time (RT): 2.7min; UV λmax: 320nm; m/z: 245.02) and porphyra-334 (RT: 3.6min; UV λmax: 334nm; m/z: 347.1). FTIR spectroscopy analyses also revealed the presence of functional groups of both compounds. NMR spectroscopy analyses confirmed the presence of both palythine and porphyra-334. The UV-induced production of both MAAs was visualized under ultraviolet radiation (UVR) in contrast to the photosynthetically active radiation (PAR). The MAAs (palythine and porphyra-334) had a significant dose-dependent free radical scavenging capacity. The findings show that MAAs perform a dynamic role in the survival and photoprotection of cyanobacteria in hostile environments under high solar UV irradiances. These photoprotective compounds may have various biotechnological applications as well as role in the development of natural sunscreens.