Photosensitizers are chromophores that generate reactive oxygen species (ROS) upon light irradiation. They are used for inactivation of specific proteins by chromophore-assisted light inactivation (CALI) and for light-induced cell killing in photodynamic therapy. Here we report a genetically encoded photosensitizer, which we call KillerRed, developed from the hydrozoan chromoprotein anm2CP, a homolog of green fluorescent protein (GFP). KillerRed generates ROS upon irradiation with green light. Whereas known photosensitizers must be added to living systems exogenously, KillerRed is fully genetically encoded. We demonstrate the utility of KillerRed for light-induced killing of Escherichia coli and eukaryotic cells and for inactivating fusions to beta-galactosidase and phospholipase Cdelta1 pleckstrin homology domain.