Cyanobacteria have two types of sunscreen pigments, scytonemin and mycosporine-like amino acids (MAAs). These secondary metabolites are thought to play multiple roles against several environmental stresses such as UV radiation and desiccation. Not only the large molar absorption coefficients of these sunscreen pigments, but also their antioxidative properties may be necessary for the protection of biological molecules against the oxidative damages induced by UV radiation. The antioxidant activity and vitrification property of these pigments are thought to be requisite for the desiccation and rehydration processes in anhydrobiotes. In this review, the multiple roles of photosynthetic pigments and sunscreen pigments on stress resistance, especially from the viewpoint of their structures, biosynthetic pathway, and in vitro studies of their antioxidant activity, will be discussed.