The pH of the reaction medium can affect the charge on the surface of nanoparticles, influencing their stability, solubility, and aggregation behavior. For example, in the sol-gel process for synthesizing silica nanoparticles, the pH can determine the rate of hydrolysis and condensation reactions, thus affecting the size and morphology of the nanoparticles.