Maintaining macrophage (MΦ) heterogeneity is critical to ensure intestinal tissue homeostasis and host defense. The gut microbiota and host factors are thought to synergistically guide intestinal MΦ development, although the exact nature, regulation, and location of such collaboration remain unclear. Here, we report that microbial biochemical energy metabolism promotes colony-stimulating factor 2 (CSF2) production by group 3 innate lymphoid cells (ILC3s) within solitary isolated lymphoid tissues (SILTs) in a cell-extrinsic, NLRP3/P2X7R-dependent fashion in the steady state. Tissue-infiltrating monocytes accumulating around SILTs followed a spatially constrained, distinct developmental trajectory into SILT-associated MΦs (SAMs). CSF2 regulated the mitochondrial membrane potential and reactive oxygen species production of SAMs and contributed to the antimicrobial defense against enteric bacterial infections. Collectively, these findings identify SILTs and CSF2-producing ILC3s as a microanatomic niche for intestinal MΦ development and functional programming fueled by the integration of commensal microbial energy metabolism.