Granzyme B is a serine protease enzyme that plays a crucial role in the immune response, specifically in the process of inducing apoptosis in target cells. It is primarily secreted by cytotoxic T lymphocytes (CTLs) and natural killer (NK) cells as part of the body's defense mechanism against infected or malignant cells.