Alveolar macrophages function through a process called phagocytosis, where they engulf and digest pathogens and debris. Once the foreign material is engulfed, enzymes within the macrophage break it down. These cells also release cytokines and chemokines to recruit other immune cells to the site of infection or inflammation.