Macrophages function through several mechanisms. They can directly phagocytose pathogens and debris, release pro-inflammatory cytokines to amplify the immune response, and present antigens to T cells to initiate adaptive immunity. These activities are essential for both innate and adaptive immune responses.