Our findings reveal divergent innate immune responses between bacterial and fungal endophthalmitis and emphasize the immunomodulatory function of IL-33 in ocular infections. Here, IL33 is linked to eye infection.