Lysozyme is a small, globular protein composed of a single polypeptide chain that folds into a tertiary structure. This enzyme functions by cleaving the peptidoglycan component of bacterial cell walls, leading to cell lysis and death. Its primary role in the immune system is to provide a barrier against infection, thus maintaining health by controlling the growth of harmful bacteria.