A CD8؉ T-cell response is critical for protection against Encephalitozoon cuniculi infection. However, the factors responsible for the generation of CD8 ؉ T-cell immunity during E. cuniculi infection and the cytokines involved in this process have not been identified. In the present study, we demonstrated that p40-deficient animals, which are unable to produce interleukin-12 (IL-12), have a serious defect in expansion of the CD8 ؉ T-cell response which compromises the survival of an infected host. Adoptive transfer of CD8 ؉ T cells from immunocompetent donors protected SCID mice infected with E. cuniculi, whereas administration of CD8 ؉ T cells from p40 ؊/؊ mice failed to protect infected SCID mice. In vitro dendritic cell (DC) cultures from knockout mice pulsed with E. cuniculi spores were unable to develop a robust CD8؉ T-cell immune response. Addition of exogenous IL-12 or transfer of CD8 ؉ T cells that were initially primed with DC from p40 ؊/؊ animals to DC cultures from immunocompetent mice (directly or via transwells) led to optimal expansion of these cells. This IL-12-mediated reinstatement of CD8 ؉ T-effector immunity was independent of gamma interferon (IFN-␥) as addition of antibody to the cultures failed to have an effect. These studies demonstrated that IL-12 plays a predominant role in the expansion of effector CD8 ؉ T-cell immunity against E. cuniculi, which is critical for host survival. These findings are very important for understanding the protective immune mechanisms needed to protect an immunocompromised host against an opportunistic infection and can be extended to other microsporidial pathogens.