Serotonergic neurons in the central nervous system control behavior and mood, but knowledge of the roles of serotonergic circuits in the regulation of immune homeostasis is limited. Here, we employ mouse genetics to investigate the functions of enteric serotonergic neurons in the control of immune responses and find that these circuits regulate IgA induction and boost host defense against oral, but not systemic Salmonella Typhimurium infection. Enteric serotonergic neurons promote gut-homing, retention and activation of intestinal plasmacytoid dendritic cells (pDC). Mechanistically, this neuro-immune crosstalk is achieved through a serotonin-5-HT receptor 7 (HTR7) signaling axis that ultimately facilitates the pDC-mediated differentiation of IgA+ B cells from IgD+ precursors in the gut. Single-cell RNA-seq data further reveal novel patterns of bidirectional communication between specific subsets of enteric neurons and lamina propria DC. Our findings thus reveal a close interplay between enteric serotonergic neurons and gut immune homeostasis that enhances mucosal defense.