Dihydrogen is prepared by the electrolysis of water using platinum electrodes in the presence of a small amount of acid or alkali.