Melanoma is an aggressive cancer that has attracted attention in recent years due to its high mortality rate of 80%. Damage caused by oxidative stress generated by radical oxidation (type I reaction) and singlet oxygen (type II reaction) oxidative reactions may induce cancer. Thus, studies that aim to unveil the mechanism that drives these oxidative damage processes become relevant. Ergosterol, an analogue of 7-dehydrocholesterol (7-DHC), important in the structure of cell membranes, is widely explored in cancer treatment. However, to date little is known about the impact of different oxidative reactions on these sterols in melanoma treatment, and conflicting results about their effectiveness complicates the understanding of their role in oxidative damage. Our results highlight differences among ergosterol, 7-DHC and cholesterol in membrane properties when subjected to distinct oxidative reactions. Furthermore, we conducted a comparative study exploring mechanisms of cell damage by photodynamic treatment in A375 melanoma, comparing ergosterol, 7-DHC, and their respective endoperoxides. Notably, endoperoxides generated by singlet oxygen showed superior efficacy in reducing the viability of A375 cells compared to their precursor molecules. We also describe a step-by-step process to produce and identify endoperoxides derived from ergosterol and 7-DHC. While further studies are needed, this work provides new insights for understanding cancer cell death induced by different oxidative reactions in the presence of biologically relevant sterols.