Herpetic stromal keratitis (HSK) is a painful and vision-impairing disease caused by recurrent HSV-1 infection of the cornea. The virus replication in the corneal epithelium and associated inflammation play a dominant role in HSK progression. Current HSK treatments targeting inflammation or virus replication are partially effective and promote HSV-1 latency, and long-term use can cause side effects. Thus, understanding molecular and cellular events that control HSV-1 replication and inflammation is crucial for developing novel HSK therapies. In this study, we report that ocular HSV-1 infection induces the expression of IL-27, a pleiotropic immunoregulatory cytokine. Our data indicate that HSV-1 infection stimulates IL-27 production by macrophages. Using a primary corneal HSV-1 infection mouse model and IL-27 receptor knockout mice, we show that IL-27 plays a critical role in controlling HSV-1 shedding from the cornea, the optimum induction of effector CD4+ T cell responses, and limiting HSK progression. Using invitro bone marrow-derived macrophages, we show that IL-27 plays an antiviral role by regulating macrophage-mediated HSV-1 killing, IFN-β production, and IFN-stimulated gene expression after HSV-1 infection. Furthermore, we report that IL-27 is critical for macrophage survival, Ag uptake, and the expression of costimulatory molecules involved in the optimum induction of effector T cell responses. Our results indicate that IL-27 promotes endogenous antiviral and anti-inflammatory responses and represents a promising target for suppressing HSK progression.