Epstein-Barr virus (EBV) is a human herpesvirus hiding in a latent form in memory B cells in the majority of the world population. Although, primary EBV infection is asymptomatic or causes a self-limiting disease, infectious mononucleosis, the virus is associated with a wide variety of neoplasms developing in immunosuppressed or immunodeficient individuals, but also in patients with an apparently intact immune system. In memory B cells, tumor cells, and lymphoblastoid cell lines (LCLs, transformed by EBV in vitro) the expression of the viral genes is highly restricted. There is no virus production (lytic viral replication associated with the expression of all viral genes) in tight latency. The expression of latent viral oncogenes and RNAs is under a strict epigenetic control via DNA methylation and histone modifications that results either in a complete silencing of the EBV genome in memory B cells, or in a cell-type dependent usage of latent promoters in tumor cells, germinal center B cells, and LCLs. Both the latent and lytic EBV proteins are potent immunogens and elicit vigorous B- and T-cell responses. In immunosuppressed and immunodeficient patients, or in individuals with a functional defect of EBV-specific T cells, lytic EBV replication is regularly activated and an increased viral load can be detected in the blood. Enhanced lytic replication results in new infection events and EBV-associated transformation events, and seems to be a risk factor both for malignant transformation and the development of autoimmune diseases. One may speculate that an increased load or altered presentation of a limited set of lytic or latent EBV proteins that cross-react with cellular antigens triggers and perpetuates the pathogenic processes that result in multiple sclerosis, systemic lupus erythematosus (SLE), and rheumatoid arthritis. In addition, in SLE patients EBV may cause defects of B-cell tolerance checkpoints because latent membrane protein 1, an EBV-encoded viral oncoprotein can induce BAFF, a B-cell activating factor that rescues self-reactive B cells and induces a lupus-like autoimmune disease in transgenic mice.