The data show that XIAP is able to significantly protect photoreceptors at both the structural and functional level in the P23H model of RP, and protects photoreceptor structure in the S334ter model. This evidence concerns the gene XIAP and retinitis pigmentosa 1.