Sepsis and trauma cause inflammation and elevated susceptibility to hospital-acquired pneumonia. As phagocytosis by macrophages plays a critical role in the control of bacteria, we investigated the phagocytic activity of macrophages after resolution of inflammation. After resolution of primary pneumonia, murine alveolar macrophages (AMs) exhibited poor phagocytic capacity for several weeks. These paralyzed AMs developed from resident AMs that underwent an epigenetic program of tolerogenic training. Such adaptation was not induced by direct encounter of the pathogen but by secondary immunosuppressive signals established locally upon resolution of primary infection. Signal-regulatory protein α (SIRPα) played a critical role in the establishment of the microenvironment that induced tolerogenic training. In humans with systemic inflammation, AMs and also circulating monocytes still displayed alterations consistent with reprogramming six months after resolution of inflammation. Antibody blockade of SIRPα restored phagocytosis in monocytes of critically ill patients in vitro, which suggests a potential strategy to prevent hospital-acquired pneumonia.