Sodium benzoate, which inhibits the growth of bacteria and mold, is primarily used as an antifungal preservative in pharmaceuticals and in foods as a preservative and pickling agent.