The immune system generates highly diverse AgRs of different specificities from a pool of designated genomic loci, each containing large arrays of genes. Ultimately, each B or T cell expresses a receptor of a single type on its surface. Immune evasion by the malaria parasite Plasmodium falciparum is mediated by the mutually exclusive expression of a single member of the var family of genes, which encodes variant surface Ags. In this review, we discuss the similarities as well as the unique characteristics of the epigenetic mechanisms involved in the establishment of mutually exclusive expression in the immune and parasite systems.