Hydrogen peroxide is a byproduct of many biological reactions and can be harmful to cells if it accumulates. Catalase prevents this accumulation, thereby protecting cells from oxidative stress and potential damage. This function is particularly important in aerobic organisms where oxidative metabolism produces significant amounts of hydrogen peroxide.