Electrolysis represents the decomposition of a substance by an electric current. The electrolysis of sodium and potassium hydroxides, first done in 1808 by Sir Humphrey Davey, led to the breakthrough discovery of those two metallic elements and showed that both of these hydroxides which had previously been considered un-decomposable and thus elements, were in fact compounds: