Electrolysis – dissociate in liquid
Electrolysis must work through a liquid. Chemists assume that the different components of the liquid have dissociated from each other.
The water (H2O) would become H+ and OH-.
Other substances like salt (sodium chloride, NaCl) become Na+ and Cl- in water.