The function of lysosome is to:
digestion of food
Help the cell to defend against pathogens
Digest worm out cells
Lysosomes break down and digest food particles in a cell. They also help the cell defend itself from pathogens by forming a complex along with the pathogen, called phagosome. They also aid in recycling proteins and digest worn-out cells. Hence, they are called 'suicide bags of cells'.