Unconjugated pterins are ubiquitous molecules participating in countless enzymatic processes and potentially involved in the photosensitization of singlet oxygen, amino acids, and nucleotides. Following electronic excitation with UV-A light, some of these pterins degrade, producing hydrogen peroxide as the main side product. This process, that is known to take place in vivo, contributes to oxidative stress and melanocyte destruction in vitiligo. In this work, we present for the first time mechanistic insight to the formation of transient triplet species which simultaneously trigger Type I and Type II photosensitizing processes and the initiation of degradation processes. Our calculations reveal that photodegradation of 6-biopterin, which accumulates in the skin of vitiligo patients, leads to 6-formylpterin via retro-aldol reaction, and subsequently to 6-carboxypterin through a water-mediated aldehyde oxidation. Additionally, we show that the changes in the photosensitizing potential of these systems with pH come from the modulation of their excited-state redox potentials.