The function of a galvanic cell is to produce electricity through an oxidation-reduction reaction. Galvanic cells are used in batteries to convert chemical energy to electrical energy. Another name for a galvanic cell is a voltaic cell.
A galvanic cell consists of a negatively charged anode and a positively charged cathode, each immersed in a separate compartment full of an acidic solution. The anode and cathode are connected by a thin, conductive wire. An oxidation reaction occurs between the anode and the solution, causing the anode to release electrons. The electrons are attracted to the positively charged cathode and flow along the wire in a stream of electricity.