It was studied how the chemistry of gold nanoparticles in water is influenced by solution parameters such as the pH or the NaCl concentration under electron beam irradiation. We found that depending on these parameters the gold nanoparticles either dissolved, merged or remained unchanged.