The requirement for T cell costimulation at sites of infection and inflammation is unresolved. Herpes stromal keratitis (HSK) is a CD4(+) T cell-regulated inflammatory response to herpes simplex virus type 1 infection of the cornea. Our findings suggest that susceptibility to HSK is determined by the microenviromnent of the infected cornea, The cornea is normally devoid of Langerhans cells (LC), but these APC are present in the surrounding conjunctiva, and migrate into the cornea following infection. The costimulatory molecule B7-2 was constitutively expressed on LC in conjunctiva, but B7-1 was not detectable until 3 days postinfection, LC were the only cells in the cornea that expressed B7-1 through 7 days postinfection. B7-1 was expressed on some, but not all, migrating EC, suggesting that LC migration and B7-1 expression can be independently regulated. The early LC migration and B7-1 expression was independent of T cells, but T cells were required for the massive accumulation of B7-1(+) LC in the cornea at the onset of inflammation. Local inhibition of B7-1 function within the infected cornea prevented HSK. Locally blocking B7-2 function did not reduce HSK incidence, but markedly reduce HSK severity. This is the first direct demonstration that naturally expressed B7 is required within an inflammatory site.