A granuloma is a compact collection of immune cells that form in response to an infection, inflammation, or foreign substance. It is a hallmark of chronic inflammatory diseases and often forms as a result of the body's attempt to isolate and contain these threats.