Alveolar macrophages are a type of immune cell that resides within the alveoli. They are the first line of defense against inhaled pathogens and particles. By phagocytosing bacteria, dust, and other foreign materials, these macrophages help keep the alveolar spaces clean and protect the body from respiratory infections.