Anatomy

A45 yr old patient present with history of fever .night sweat ,weight loss. On x Ray a mass in apical love of lung is seen.on histopathology it was found to have caseous nercrosis . What is the likely underlying process involved