Electrolysis is a method of using an electric current to drive an otherwise non-spontaneous chemical reaction.