Dendritic cells (DCs), monocytes, and macrophages are closely related phagocytes that share many phenotypic features and, in some cases, a common developmental origin. Although the requirement for DCs in initiating adaptive immune responses is well appreciated, the role of monocytes and macrophages remains largely undefined, in part because of the lack of genetic tools enabling their specific depletion. Here, we describe a two-gene approach that requires overlapping expression of LysM and Csf1r to define and deplete monocytes and macrophages. The role of monocytes and macrophages in immunity to pathogens was tested by their selective depletion during infection with Citrobacter rodentium. Although neither cell type was required to initiate immunity, monocytes and macrophages contributed to the adaptive immune response by secreting IL-12, which induced Th1 polarization and IFN-γ secretion. Thus, whereas DCs are indispensable for priming naive CD4(+) T cells, monocytes and macrophages participate in intestinal immunity by producing mediators that direct T cell polarization.