When a cell becomes damaged or undergoes some type of infection, it self destructs by a process called
Apoptosis
Apoptosis is a form of cell death in which a programmed sequence of events leads to the elimination of cells without releasing harmful substances into the surrounding area.