We used a murine model to elucidate the role of SLPI, an antimicrobial peptide, in endophthalmitis. This evidence concerns the gene SLPI and endophthalmitis.