We provide the first evidence that STAT3 expression is needed for murine gammaherpesvirus 68 to establish latency in primary B cells during an active immune response to infection. This evidence concerns the gene STAT3 and infection.