Infectious keratitis is a vision-threatening microbial infection. The increasing antimicrobial resistance and the fact that severe cases often evolve into corneal perforation necessitate the development of alternative therapeutics for effective medical management. Genipin, a natural crosslinker, was recently shown to exert antimicrobial effects in an ex vivo model of microbial keratitis, highlighting its potential to serve as a novel treatment for infectious keratitis. This study aimed to evaluate the antimicrobial and anti-inflammatory effects of genipin in an in vivo model of Staphylococcus aureus (S. aureus) and Pseudomonas aeruginosa (P. aeruginosa) keratitis. Clinical scores, confocal microscopy, plate count, and histology were carried out to evaluate the severity of keratitis. To assess the effect of genipin on inflammation, the gene expression of pro- and anti-inflammatory factors, including matrix metalloproteinases (MMPs), were evaluated. Genipin treatment alleviated the severity of bacterial keratitis by reducing bacterial load and repressing neutrophil infiltration. The expression of interleukin 1B (IL1B), interleukin 6 (IL6), interleukin 8 (IL8), interleukin 15 (IL15), tumor necrosis factor-α (TNF-α), and interferon γ (IFNγ), as well as MMP2 and MMP9, were significantly reduced in genipin-treated corneas. Genipin promoted corneal proteolysis and host resistance to S. aureus and P. aeruginosa infection by suppressing inflammatory cell infiltration, regulating inflammatory mediators, and downregulating the expression of MMP2 and MMP9.