pH affects food chemistry and preservation by influencing enzyme activity, microbial growth, and chemical reactions. Low pH (acidic conditions) inhibits spoilage and pathogenic microorganisms, enhancing preservation, while high pH (alkaline conditions) can increase enzymatic activity leading to spoilage. It also affects taste, texture, and nutrient stability in foods.