text: A pure stoichiometric mixture may be obtained by water electrolysis, which uses an electric current to dissociate the water molecules:
  : Electrolysis: 
  : Combustion: 
  William Nicholson was the first to decompose water in this manner in 1800. In theory, the input energy of a closed system always equals the output energy, as the first law of thermodynamics states. However, in practice no systems are perfectly closed, and the energy required to generate the oxyhydrogen always exceeds the energy released by combusting it, even at maximum practical efficiency, as the second law of thermodynamics implies (see Electrolysis of water#Efficiency).