Macrophages probably are an extremely old invention of the immune system, maybe even the first sort of dedicated defense cell, since almost all multicellular animals have some form of macrophage-like cell. In a sense they are a bit like single-celled organisms. Their main job is border patrol and garbage disposal unit, but they also help with coordination of other cells, preparing the battlefield by causing inflammation, and encouraging wound healing after an injury.