Granulomatous lesions are localized nodular inflammations formed by a collection of immune cells, primarily macrophages, which occur in response to chronic infection or inflammation. These lesions often form to contain pathogens that are difficult to eradicate.