The Epstein-Barr virus (EBV) can cause certain types of cancer or autoimmune diseases, but how the body controls this common viral infection is largely unknown.