Surface groups can significantly impact the stability of nanomaterials. For instance, hydrophilic groups like hydroxyl and carboxyl can improve the dispersion of nanoparticles in aqueous solutions, preventing aggregation. On the other hand, hydrophobic groups may enhance the stability of nanoparticles in organic solvents.