Lysosomes are sphere-shaped vesicles or sacs filled with all types of enzymes capable of breaking down all types of biomolecules like carbohydrates,proteins, lipids, and nucleic acids.
Lysosomes act as a digestive system of the cell by degrading outside of the cell and digesting unwanted components in the cell.
Lysosomes fight against foreign substances such as bacteria, viruses, and other antigens.
If a cell gets damaged it undergoes a process of autolysis and releases hydrolytic enzymes.
These enzymes digest their cell so finally, the cell will die.
Hence another name for Lysosome is suicidal bags of the cell.
Lysosomes function as the waste disposing of structures of the cells, they will process the unwanted substances both from inside the cell and outside the cell.
By the process of endocytosis foreign substances or cellular debris are pulled into the cell when the cell membrane falls in on itself, then it creates a pouch and brings those contents into it.