A galvanic cell is a device in which a spontaneous oxidation-reduction reaction is used to convert chemical energy into electrical energy. Galvanic cells harness the electrical energy available from the electron transfer in a redox reaction to perform useful electrical work.