Hydrogen peroxide production protects Chlamydomonas reinhardtii against light-induced cell death by preventing singlet oxygen accumulation through enhanced carotenoid synthesis.