Macrophages are specialized cells responsible for detecting, engulfing, and destroying bacteria and harmful organisms. They also play a role in presenting antigens to T cells and triggering inflammation by releasing molecules called cytokines, which activate other cells.