Electrolysis uses electrical energy to drive non-spontaneous redox reactions, splitting compounds into their constituent elements or depositing metals. Faraday's laws govern this process: the first law states that mass deposited is proportional to charge passed, while the second law relates mass to equivalent weight. This principle enables precise control over electrochemical processes from metal plating to hydrogen production.