Interactions between the central nervous system and the immune system have been studied primarily in the context of pathology, popularizing the view that interplay between these two systems is inherently detrimental. However, recent experimental data have demonstrated productive neuroimmune interactions that occur under normal physiological conditions. In this Essay, we outline our current understanding of contemporary neuroimmunology, describe a working model of T cell function in support of learning and memory, and offer ideas regarding the selective advantages of immune-mediated effects on brain function.