Enteric-associated neurons (EANs) are closely associated with immune cells and continuously monitor and modulate homeostatic intestinal functions, including motility and nutrient sensing. Bidirectional interactions between neuronal and immune cells are altered during disease processes such as neurodegeneration or irritable bowel syndrome. We investigated the effects of infection-induced inflammation on intrinsic EANs (iEANs) and the role of intestinal muscularis macrophages (MMs) in this context. Using murine models of enteric infections, we observed long-term gastrointestinal symptoms, including reduced motility and loss of excitatory iEANs, which was mediated by a Nlrp6- and Casp11-dependent mechanism, depended on infection history, and could be reversed by manipulation of the microbiota. MMs responded to luminal infection by upregulating a neuroprotective program via β2-adrenergic receptor (β2-AR) signaling and mediated neuronal protection through an arginase 1-polyamine axis. Our results identify a mechanism of neuronal death post-infection and point to a role for tissue-resident MMs in limiting neuronal damage.