The pH of the reaction medium can significantly influence the activity and stability of a catalyst. In biocatalysis, enzymes have an optimal pH range within which they exhibit maximum activity. Deviations from this pH can lead to reduced activity or denaturation of the enzyme. Similarly, for acid-base catalysis, the pH can affect the protonation states of the reactants and the catalyst, thereby influencing the reaction rate.