Pathology

A 45 yr old patient presents with fever, night sweats, weight loss. On X ray a mass in apical lobe of lung is seen. On histopathology found to have caseous necrosis. What is the underlying process?