Electricity as a crowbar
Some compounds hold together too strongly to split by heating or stirring, but an electric current can prise them apart. Electrolysis passes a direct current through a liquid containing the compound. The electrical energy forces a chemical change that would not happen on its own — the reverse, in a sense, of a battery, where a chemical change produces electricity.
The classic demonstration splits water. Water contains hydrogen and oxygen locked together as H₂O. Connect two electrodes to a power supply, lower them into the water, and bubbles begin to rise from both: hydrogen collects at the negative electrode, oxygen at the positive one.
What happens, step by step
Inside the liquid, the current is carried by charged particles called ions moving between the electrodes. At the negative electrode — the cathode — hydrogen ions gain electrons and join up in pairs as hydrogen gas. At the positive electrode — the anode — oxygen is released instead.
The volumes tell the story of the formula: you collect about twice as much hydrogen as oxygen, matching the two-to-one ratio of atoms in every water molecule. School tests confirm the gases — hydrogen gives a squeaky pop with a lit splint, while oxygen relights a glowing one. A little dissolved salt or acid is usually added, because pure water conducts electricity only very weakly.
Splitting things industry needs
Electrolysis is far more than a classroom trick. Aluminium, one of the world's most used metals, is won by passing enormous currents through molten aluminium ore — the metal simply cannot be extracted any cheaper way, which is why aluminium smelters are built beside big power stations.
The same method splits brine to make chlorine for disinfectants, and it is now being scaled up to make 'green' hydrogen: water split using renewable electricity, giving a fuel whose only waste product, when burned, is water again.

